This test needs -aggressive-remat enabled.
[oota-llvm.git] / test / CodeGen / X86 / remat-constant.ll
1 ; RUN: llvm-as < %s | llc -march=x86-64 -relocation-model=static -aggressive-remat | grep xmm | count 2
2
3 declare void @bar() nounwind
4
5 @a = external constant float
6
7 declare void @qux(float %f) nounwind 
8
9 define void @foo() nounwind  {
10   %f = load float* @a
11   call void @bar()
12   call void @qux(float %f)
13   call void @qux(float %f)
14   ret void
15 }