Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / break-sse-dep.ll
1 ; RUN: llc < %s -march=x86-64 -mattr=+sse2 | FileCheck %s
2
3 define double @t1(float* nocapture %x) nounwind readonly ssp {
4 entry:
5 ; CHECK: t1:
6 ; CHECK: movss (%rdi), %xmm0
7 ; CHECK; cvtss2sd %xmm0, %xmm0
8
9   %0 = load float* %x, align 4
10   %1 = fpext float %0 to double
11   ret double %1
12 }
13
14 define float @t2(double* nocapture %x) nounwind readonly ssp optsize {
15 entry:
16 ; CHECK: t2:
17 ; CHECK; cvtsd2ss (%rdi), %xmm0
18   %0 = load double* %x, align 8
19   %1 = fptrunc double %0 to float
20   ret float %1
21 }