summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/atomic_add.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/atomic_add.ll')
-rw-r--r--test/CodeGen/X86/atomic_add.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/X86/atomic_add.ll b/test/CodeGen/X86/atomic_add.ll
index 1fce256a8a2..d94499889de 100644
--- a/test/CodeGen/X86/atomic_add.ll
+++ b/test/CodeGen/X86/atomic_add.ll
@@ -178,7 +178,8 @@ entry:
define void @sub2(i16* nocapture %p, i32 %v) nounwind ssp {
entry:
; CHECK: sub2:
-; CHECK: negl
+; CHECK-NOT: negl
+; CHECK: subw
%0 = trunc i32 %v to i16 ; <i16> [#uses=1]
%1 = atomicrmw sub i16* %p, i16 %0 monotonic
ret void