Add a neat little two's complement hack for x86.
[oota-llvm.git] / test / CodeGen / X86 / atomic_add.ll
index c0092108f14945fe2570518895deb2c6292057ae..26d25e24dfbc363c9284c3da2f798eb915b06db1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | FileCheck %s
+; RUN: llc < %s -march=x86-64 | FileCheck %s
 
 ; rdar://7103704
 
@@ -192,7 +192,7 @@ entry:
 define void @sub2(i16* nocapture %p, i32 %v) nounwind ssp {
 entry:
 ; CHECK: sub2:
-; CHECK: subw
+; CHECK: negl
        %0 = trunc i32 %v to i16                ; <i16> [#uses=1]
        %1 = tail call i16 @llvm.atomic.load.sub.i16.p0i16(i16* %p, i16 %0)             ; <i16> [#uses=0]
        ret void