[llvm-commits] [llvm] r116050 - /llvm/trunk/test/CodeGen/X86/cmp-test.ll

Chris Lattner sabre at nondot.org
Thu Oct 7 22:02:29 PDT 2010


Author: lattner
Date: Fri Oct  8 00:02:29 2010
New Revision: 116050

URL: http://llvm.org/viewvc/llvm-project?rev=116050&view=rev
Log:
filecheckize.

Modified:
    llvm/trunk/test/CodeGen/X86/cmp-test.ll

Modified: llvm/trunk/test/CodeGen/X86/cmp-test.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/cmp-test.ll?rev=116050&r1=116049&r2=116050&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/cmp-test.ll (original)
+++ llvm/trunk/test/CodeGen/X86/cmp-test.ll Fri Oct  8 00:02:29 2010
@@ -1,7 +1,6 @@
-; RUN: llc < %s -march=x86 | grep cmp | count 1
-; RUN: llc < %s -march=x86 | grep test | count 1
+; RUN: llc < %s -march=x86-64 | FileCheck %s
 
-define i32 @f1(i32 %X, i32* %y) nounwind {
+define i32 @test1(i32 %X, i32* %y) nounwind {
 	%tmp = load i32* %y		; <i32> [#uses=1]
 	%tmp.upgrd.1 = icmp eq i32 %tmp, 0		; <i1> [#uses=1]
 	br i1 %tmp.upgrd.1, label %ReturnBlock, label %cond_true
@@ -11,9 +10,11 @@
 
 ReturnBlock:		; preds = %0
 	ret i32 0
+; CHECK: test1:
+; CHECK: cmpl	$0, (%rsi)
 }
 
-define i32 @f2(i32 %X, i32* %y) nounwind {
+define i32 @test2(i32 %X, i32* %y) nounwind {
 	%tmp = load i32* %y		; <i32> [#uses=1]
 	%tmp1 = shl i32 %tmp, 3		; <i32> [#uses=1]
 	%tmp1.upgrd.2 = icmp eq i32 %tmp1, 0		; <i1> [#uses=1]
@@ -24,4 +25,8 @@
 
 ReturnBlock:		; preds = %0
 	ret i32 0
+; CHECK: test2:
+; CHECK: movl	(%rsi), %eax
+; CHECK: shll	$3, %eax
+; CHECK: testl	%eax, %eax
 }





More information about the llvm-commits mailing list