Add a neat little two's complement hack for x86.
[oota-llvm.git] / test / CodeGen / X86 / change-compare-stride-1.ll
index a9ddbdb7f745af659db11aba539626df2b1e4571..eee3b79acfafbee6b48a8cff9bab86918b2c0fd1 100644 (file)
@@ -1,11 +1,14 @@
-; RUN: llc < %s -march=x86-64 > %t
-; RUN: grep {cmpq      \$-478,} %t
-; RUN: not grep inc %t
-; RUN: not grep {leal  1(} %t
-; RUN: not grep {leal  -1(} %t
-; RUN: grep dec %t | count 1
+; RUN: llc < %s -march=x86-64 | FileCheck %s
 
 define void @borf(i8* nocapture %in, i8* nocapture %out) nounwind {
+; CHECK: borf:
+; CHECK-NOT: inc
+; CHECK-NOT: leal 1(
+; CHECK-NOT: leal -1(
+; CHECK: decq
+; CHECK-NEXT: cmpq $-478
+; CHECK: ret
+
 bb4.thread:
        br label %bb2.outer