diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-05 06:17:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-05 06:17:43 +0000 |
commit | 1beaf41ef6fd29e96cff75fb173133f09822745f (patch) | |
tree | 9cb7358bc55d1314a7c064d660300ce5dcd38476 /test/CodeGen/X86/use-add-flags.ll | |
parent | 9bbcd5ee5b9a34f82d7d0570256ff4b4f53fabe9 (diff) | |
download | external_llvm-1beaf41ef6fd29e96cff75fb173133f09822745f.zip external_llvm-1beaf41ef6fd29e96cff75fb173133f09822745f.tar.gz external_llvm-1beaf41ef6fd29e96cff75fb173133f09822745f.tar.bz2 |
cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/use-add-flags.ll')
-rw-r--r-- | test/CodeGen/X86/use-add-flags.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/X86/use-add-flags.ll b/test/CodeGen/X86/use-add-flags.ll index 2dd2a4a..c2f0c23 100644 --- a/test/CodeGen/X86/use-add-flags.ll +++ b/test/CodeGen/X86/use-add-flags.ll @@ -5,13 +5,13 @@ ; Use the flags on the add. -; CHECK: add_zf: +; CHECK: test1: ; CHECK: addl (%rdi), %esi ; CHECK-NEXT: movl %edx, %eax ; CHECK-NEXT: cmovnsl %ecx, %eax ; CHECK-NEXT: ret -define i32 @add_zf(i32* %x, i32 %y, i32 %a, i32 %b) nounwind { +define i32 @test1(i32* %x, i32 %y, i32 %a, i32 %b) nounwind { %tmp2 = load i32* %x, align 4 ; <i32> [#uses=1] %tmp4 = add i32 %tmp2, %y ; <i32> [#uses=1] %tmp5 = icmp slt i32 %tmp4, 0 ; <i1> [#uses=1] @@ -24,10 +24,10 @@ declare void @foo(i32) ; Don't use the flags result of the and here, since the and has no ; other use. A simple test is better. -; CHECK: bar: +; CHECK: test2: ; CHECK: testb $16, %dil -define void @bar(i32 %x) nounwind { +define void @test2(i32 %x) nounwind { %y = and i32 %x, 16 %t = icmp eq i32 %y, 0 br i1 %t, label %true, label %false @@ -40,11 +40,11 @@ false: ; Do use the flags result of the and here, since the and has another use. -; CHECK: qux: +; CHECK: test3: ; CHECK: andl $16, %edi ; CHECK-NEXT: jne -define void @qux(i32 %x) nounwind { +define void @test3(i32 %x) nounwind { %y = and i32 %x, 16 %t = icmp eq i32 %y, 0 br i1 %t, label %true, label %false |