X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Foptimize-max-3.ll;h=71885efbd31fb16964736c3e57e5804ff625ce07;hb=a18156c3b8d92d5eb1af043947d1b1461c84e40f;hp=f1e3c2772ac9e7b5eba67452aad318ac617417f3;hpb=dd2fa4bbea1e5b343d46b601605d714568871643;p=oota-llvm.git diff --git a/test/CodeGen/X86/optimize-max-3.ll b/test/CodeGen/X86/optimize-max-3.ll index f1e3c2772ac..71885efbd31 100644 --- a/test/CodeGen/X86/optimize-max-3.ll +++ b/test/CodeGen/X86/optimize-max-3.ll @@ -1,8 +1,9 @@ -; RUN: llc < %s -march=x86-64 -asm-verbose=false | FileCheck %s +; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux -asm-verbose=false | FileCheck %s +; RUN: llc < %s -mcpu=generic -mtriple=x86_64-win32 -asm-verbose=false | FileCheck %s ; LSR's OptimizeMax should eliminate the select (max). -; CHECK: foo: +; CHECK-LABEL: foo: ; CHECK-NOT: cmov ; CHECK: jle @@ -19,8 +20,8 @@ for.body.preheader: ; preds = %entry for.body: ; preds = %for.body.preheader, %for.body %i = phi i64 [ %i.next, %for.body ], [ 0, %for.body.preheader ] ; [#uses=2] - %arrayidx = getelementptr double* %p, i64 %i ; [#uses=2] - %t4 = load double* %arrayidx ; [#uses=1] + %arrayidx = getelementptr double, double* %p, i64 %i ; [#uses=2] + %t4 = load double, double* %arrayidx ; [#uses=1] %mul = fmul double %t4, 2.200000e+00 ; [#uses=1] store double %mul, double* %arrayidx %i.next = add nsw i64 %i, 1 ; [#uses=2] @@ -36,18 +37,17 @@ for.end: ; preds = %for.body, %entry ; OptimizeMax should handle this case. ; PR7454 -; CHECK: _Z18GenerateStatusPagei: +; CHECK-LABEL: _Z18GenerateStatusPagei: ; CHECK: jle ; CHECK-NOT: cmov -; CHECK: xorl %edi, %edi +; CHECK: xorl {{%edi, %edi|%ecx, %ecx|%eax, %eax}} ; 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: jl +; CHECK: callq +; CHECK-NEXT: incl [[BX:%[a-z0-9]+]] +; CHECK-NEXT: cmpl [[R14:%[a-z0-9]+]], [[BX]] +; CHECK: jl define void @_Z18GenerateStatusPagei(i32 %jobs_to_display) nounwind { entry: