Skip to content

Commit 6a8a65c

Browse files
committed
filecheckize.
llvm-svn: 116050
1 parent 8087ca2 commit 6a8a65c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

llvm/test/CodeGen/X86/cmp-test.ll

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
; RUN: llc < %s -march=x86 | grep cmp | count 1
2-
; RUN: llc < %s -march=x86 | grep test | count 1
1+
; RUN: llc < %s -march=x86-64 | FileCheck %s
32

4-
define i32 @f1(i32 %X, i32* %y) nounwind {
3+
define i32 @test1(i32 %X, i32* %y) nounwind {
54
%tmp = load i32* %y ; <i32> [#uses=1]
65
%tmp.upgrd.1 = icmp eq i32 %tmp, 0 ; <i1> [#uses=1]
76
br i1 %tmp.upgrd.1, label %ReturnBlock, label %cond_true
@@ -11,9 +10,11 @@ cond_true: ; preds = %0
1110

1211
ReturnBlock: ; preds = %0
1312
ret i32 0
13+
; CHECK: test1:
14+
; CHECK: cmpl $0, (%rsi)
1415
}
1516

16-
define i32 @f2(i32 %X, i32* %y) nounwind {
17+
define i32 @test2(i32 %X, i32* %y) nounwind {
1718
%tmp = load i32* %y ; <i32> [#uses=1]
1819
%tmp1 = shl i32 %tmp, 3 ; <i32> [#uses=1]
1920
%tmp1.upgrd.2 = icmp eq i32 %tmp1, 0 ; <i1> [#uses=1]
@@ -24,4 +25,8 @@ cond_true: ; preds = %0
2425

2526
ReturnBlock: ; preds = %0
2627
ret i32 0
28+
; CHECK: test2:
29+
; CHECK: movl (%rsi), %eax
30+
; CHECK: shll $3, %eax
31+
; CHECK: testl %eax, %eax
2732
}

0 commit comments

Comments
 (0)