diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-22 07:21:08 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-02-22 07:21:08 +0000 |
commit | 166b79fb247f30da4fed06c0d40657b0b5e08c58 (patch) | |
tree | 7a7da568d4a0090df602ad0f9a149e4395f2686e /test/CodeGen/X86/optimize-max-3.ll | |
parent | 661cae4b583068eb62e01b0a6add5d846e31b4db (diff) | |
download | external_llvm-166b79fb247f30da4fed06c0d40657b0b5e08c58.zip external_llvm-166b79fb247f30da4fed06c0d40657b0b5e08c58.tar.gz external_llvm-166b79fb247f30da4fed06c0d40657b0b5e08c58.tar.bz2 |
Relax expressions and add explicit triplets -linux and -win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/optimize-max-3.ll')
-rw-r--r-- | test/CodeGen/X86/optimize-max-3.ll | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/CodeGen/X86/optimize-max-3.ll b/test/CodeGen/X86/optimize-max-3.ll index f1e3c27..b90413d 100644 --- a/test/CodeGen/X86/optimize-max-3.ll +++ b/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 { |