X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Floop-strength-reduce-2.ll;h=b546462b684fb29379aaaaaf80bb6803f659467c;hp=b094fed2f67b95eb5e95d07e75290539ea34db2e;hb=454627252b1cc43e81949d41eb20e9ea9560da58;hpb=0eb5dadf657d38da9a8c7fe44c660bcfb6933038 diff --git a/test/CodeGen/X86/loop-strength-reduce-2.ll b/test/CodeGen/X86/loop-strength-reduce-2.ll index b094fed2f67..b546462b684 100644 --- a/test/CodeGen/X86/loop-strength-reduce-2.ll +++ b/test/CodeGen/X86/loop-strength-reduce-2.ll @@ -1,18 +1,20 @@ -; RUN: llc < %s -march=x86 -mcpu=corei7 -relocation-model=pic | FileCheck %s -check-prefix=PIC -; RUN: llc < %s -march=x86 -mcpu=corei7 -relocation-model=static | FileCheck %s -check-prefix=STATIC +; RUN: llc < %s -march=x86 -relocation-model=pic | FileCheck %s -check-prefix=PIC +; RUN: llc < %s -march=x86 -relocation-model=static | FileCheck %s -check-prefix=STATIC ; ; Make sure the common loop invariant A is hoisted up to preheader, ; since too many registers are needed to subsume it into the addressing modes. ; It's safe to sink A in when it's not pic. ; PIC: align -; PIC: movlpd %xmm0, -4([[REG:%e[a-z]+]]) +; PIC: movl $4, -4([[REG:%e[a-z]+]]) +; PIC: movl $5, ([[REG]]) ; PIC: addl $4, [[REG]] ; PIC: decl {{%e[[a-z]+}} ; PIC: jne ; STATIC: align -; STATIC: movlpd %xmm0, -4(%ecx) +; STATIC: movl $4, -4(%ecx) +; STATIC: movl $5, (%ecx) ; STATIC: addl $4, %ecx ; STATIC: decl %eax ; STATIC: jne