summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:21:08 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-02-22 07:21:08 +0000
commita1e2ed5f1bf24e0f560737cea68afdcac4c241f1 (patch)
tree9a68399746a3e0f54faee232e83aca9c54afab6f
parente38080bd8eb4dac311681fc6c71f497b0e621469 (diff)
downloadbcm5719-llvm-a1e2ed5f1bf24e0f560737cea68afdcac4c241f1.tar.gz
bcm5719-llvm-a1e2ed5f1bf24e0f560737cea68afdcac4c241f1.zip
Relax expressions and add explicit triplets -linux and -win32.
llvm-svn: 126210
-rw-r--r--llvm/test/CodeGen/X86/optimize-max-3.ll11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/X86/optimize-max-3.ll b/llvm/test/CodeGen/X86/optimize-max-3.ll
index f1e3c2772ac..b90413d40a0 100644
--- a/llvm/test/CodeGen/X86/optimize-max-3.ll
+++ b/llvm/test/CodeGen/X86/optimize-max-3.ll
@@ -1,4 +1,5 @@
-; RUN: llc < %s -march=x86-64 -asm-verbose=false | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux -asm-verbose=false | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-win32 -asm-verbose=false | FileCheck %s
; LSR's OptimizeMax should eliminate the select (max).
@@ -40,13 +41,13 @@ for.end: ; preds = %for.body, %entry
; CHECK: jle
; CHECK-NOT: cmov
-; CHECK: xorl %edi, %edi
+; CHECK: xorl {{%edi, %edi|%ecx, %ecx}}
; CHECK-NEXT: align
; CHECK-NEXT: BB1_2:
; CHECK-NEXT: callq
-; CHECK-NEXT: incl %ebx
-; CHECK-NEXT: cmpl %r14d, %ebx
-; CHECK-NEXT: movq %rax, %rdi
+; CHECK-NEXT: incl [[BX:%ebx|%esi]]
+; CHECK-NEXT: cmpl [[R14:%r14d|%edi]], [[BX]]
+; CHECK-NEXT: movq %rax, %r{{di|cx}}
; CHECK-NEXT: jl
define void @_Z18GenerateStatusPagei(i32 %jobs_to_display) nounwind {
OpenPOWER on IntegriCloud