merge cmp1 into cmp0 and filecheckize.
authorChris Lattner <sabre@nondot.org>
Sat, 7 Nov 2009 06:19:20 +0000 (06:19 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 7 Nov 2009 06:19:20 +0000 (06:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86345 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/cmp0.ll
test/CodeGen/X86/cmp1.ll [deleted file]

index de893745bae9cce47a68735941c8f016942fdb72..4878448800cc03f576dab1a7b4557e3cf9ba0f52 100644 (file)
@@ -1,7 +1,24 @@
-; RUN: llc < %s -march=x86-64 | grep -v cmp
+; RUN: llc < %s -march=x86-64 | FileCheck %s
 
-define i64 @foo(i64 %x) {
+define i64 @test0(i64 %x) nounwind {
   %t = icmp eq i64 %x, 0
   %r = zext i1 %t to i64
   ret i64 %r
+; CHECK: test0:
+; CHECK:       testq   %rdi, %rdi
+; CHECK:       sete    %al
+; CHECK:       movzbl  %al, %eax
+; CHECK:       ret
 }
+
+define i64 @test1(i64 %x) nounwind {
+  %t = icmp slt i64 %x, 1
+  %r = zext i1 %t to i64
+  ret i64 %r
+; CHECK: test1:
+; CHECK:       testq   %rdi, %rdi
+; CHECK:       setle   %al
+; CHECK:       movzbl  %al, %eax
+; CHECK:       ret
+}
+
diff --git a/test/CodeGen/X86/cmp1.ll b/test/CodeGen/X86/cmp1.ll
deleted file mode 100644 (file)
index d4aa399..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: llc < %s -march=x86-64 | grep -v cmp
-
-define i64 @foo(i64 %x) {
-  %t = icmp slt i64 %x, 1
-  %r = zext i1 %t to i64
-  ret i64 %r
-}