aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:21:42 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:21:42 +0000
commit3f38d20f955bbac62f55545e9fb89820fd129222 (patch)
tree3c8b60310db66e870ea2396f5b4c817999b8e825 /test/CodeGen
parentaef8871177c86d672f925cc10dcf4cfffa0436c4 (diff)
downloadexternal_llvm-3f38d20f955bbac62f55545e9fb89820fd129222.zip
external_llvm-3f38d20f955bbac62f55545e9fb89820fd129222.tar.gz
external_llvm-3f38d20f955bbac62f55545e9fb89820fd129222.tar.bz2
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/use-add-flags.ll13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/CodeGen/X86/use-add-flags.ll b/test/CodeGen/X86/use-add-flags.ll
index c2f0c23..8fbbd39 100644
--- a/test/CodeGen/X86/use-add-flags.ll
+++ b/test/CodeGen/X86/use-add-flags.ll
@@ -1,4 +1,5 @@
-; RUN: llc < %s -march=x86-64 -o - | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-win32 | FileCheck %s
; Reuse the flags value from the add instructions instead of emitting separate
; testl instructions.
@@ -6,9 +7,9 @@
; Use the flags on the add.
; CHECK: test1:
-; CHECK: addl (%rdi), %esi
-; CHECK-NEXT: movl %edx, %eax
-; CHECK-NEXT: cmovnsl %ecx, %eax
+; CHECK: addl (%r[[A0:di|cx]]), {{%esi|%edx}}
+; CHECK-NEXT: movl {{%edx|%r8d}}, %eax
+; CHECK-NEXT: cmovnsl {{%ecx|%r9d}}, %eax
; CHECK-NEXT: ret
define i32 @test1(i32* %x, i32 %y, i32 %a, i32 %b) nounwind {
@@ -25,7 +26,7 @@ declare void @foo(i32)
; other use. A simple test is better.
; CHECK: test2:
-; CHECK: testb $16, %dil
+; CHECK: testb $16, {{%dil|%cl}}
define void @test2(i32 %x) nounwind {
%y = and i32 %x, 16
@@ -41,7 +42,7 @@ false:
; Do use the flags result of the and here, since the and has another use.
; CHECK: test3:
-; CHECK: andl $16, %edi
+; CHECK: andl $16, %e[[A0]]
; CHECK-NEXT: jne
define void @test3(i32 %x) nounwind {