diff options
author | Chris Lattner <sabre@nondot.org> | 2010-10-08 05:02:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-10-08 05:02:29 +0000 |
commit | 4409c82a21d1b0e562b5bbb97ad9062c3cb2438b (patch) | |
tree | e2de669b67ba0e0914db128f99f386993b5333ad /test/CodeGen | |
parent | e4ba1a07619b3bad05785e55a2bcc27a22854f72 (diff) | |
download | external_llvm-4409c82a21d1b0e562b5bbb97ad9062c3cb2438b.zip external_llvm-4409c82a21d1b0e562b5bbb97ad9062c3cb2438b.tar.gz external_llvm-4409c82a21d1b0e562b5bbb97ad9062c3cb2438b.tar.bz2 |
filecheckize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/X86/cmp-test.ll | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/test/CodeGen/X86/cmp-test.ll b/test/CodeGen/X86/cmp-test.ll index 4f627e9..7d55cd1 100644 --- a/test/CodeGen/X86/cmp-test.ll +++ b/test/CodeGen/X86/cmp-test.ll @@ -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 @@ cond_true: ; preds = %0 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 @@ cond_true: ; preds = %0 ReturnBlock: ; preds = %0 ret i32 0 +; CHECK: test2: +; CHECK: movl (%rsi), %eax +; CHECK: shll $3, %eax +; CHECK: testl %eax, %eax } |