aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/use-add-flags.ll
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 23:54:51 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-05-04 23:54:51 +0000
commit61396aebee310b96b0c2a9cb629665c2f23d45f5 (patch)
tree99fbd7c9b7c1fae9241bbb870d5e810623d280c2 /test/CodeGen/X86/use-add-flags.ll
parent3f58a513e19fba487cb8416492456e9ade7db32e (diff)
downloadexternal_llvm-61396aebee310b96b0c2a9cb629665c2f23d45f5.zip
external_llvm-61396aebee310b96b0c2a9cb629665c2f23d45f5.tar.gz
external_llvm-61396aebee310b96b0c2a9cb629665c2f23d45f5.tar.bz2
Fix a batch of x86 tests to be coalescer independent.
Most of these tests require a single mov instruction that can come either before or after a 2-addr instruction. -join-physregs changes the behavior, but the results are equivalent. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/use-add-flags.ll')
-rw-r--r--test/CodeGen/X86/use-add-flags.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/CodeGen/X86/use-add-flags.ll b/test/CodeGen/X86/use-add-flags.ll
index 8fbbd39..a0448ec 100644
--- a/test/CodeGen/X86/use-add-flags.ll
+++ b/test/CodeGen/X86/use-add-flags.ll
@@ -7,10 +7,10 @@
; Use the flags on the add.
; CHECK: test1:
-; CHECK: addl (%r[[A0:di|cx]]), {{%esi|%edx}}
-; CHECK-NEXT: movl {{%edx|%r8d}}, %eax
-; CHECK-NEXT: cmovnsl {{%ecx|%r9d}}, %eax
-; CHECK-NEXT: ret
+; CHECK: addl
+; CHECK-NOT: test
+; CHECK: cmovnsl
+; CHECK: ret
define i32 @test1(i32* %x, i32 %y, i32 %a, i32 %b) nounwind {
%tmp2 = load i32* %x, align 4 ; <i32> [#uses=1]
@@ -42,7 +42,7 @@ false:
; Do use the flags result of the and here, since the and has another use.
; CHECK: test3:
-; CHECK: andl $16, %e[[A0]]
+; CHECK: andl $16, %e
; CHECK-NEXT: jne
define void @test3(i32 %x) nounwind {