Added support to fold X86 load / store instructions. This allow rematerialized loads...
[oota-llvm.git] / test / CodeGen / X86 / constant-pool-remat-0.ll
1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep LCPI | count 3
2 ; RUN: llvm-as < %s | llc -march=x86-64 -stats -info-output-file - | grep asm-printer | grep 6
3 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep LCPI | count 3
4 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats -info-output-file - | grep asm-printer | grep 8
5
6 declare fastcc float @qux(float %y)
7
8 define fastcc float @array(float %a) {
9   %n = mul float %a, 9.0
10   %m = call fastcc float @qux(float %n)
11   %o = mul float %m, 9.0
12   ret float %o
13 }