When dead code elimination removes all but one use, try to fold the single def into...
[oota-llvm.git] / test / CodeGen / X86 / constant-pool-remat-0.ll
1 ; RUN: llc < %s -mtriple=x86_64-linux   | FileCheck %s
2 ; RUN: llc < %s -mtriple=x86_64-linux -regalloc=greedy | FileCheck %s
3 ; RUN: llc < %s -march=x86 -mattr=+sse2 | FileCheck %s
4 ; CHECK:     LCPI
5 ; CHECK:     LCPI
6 ; CHECK:     LCPI
7 ; CHECK-NOT: LCPI
8
9 ; RUN: llc < %s -mtriple=x86_64-linux -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X64stat
10 ; X64stat: 6 asm-printer
11
12 ; RUN: llc < %s -march=x86 -mattr=+sse2 -o /dev/null -stats -info-output-file - | FileCheck %s -check-prefix=X32stat
13 ; X32stat: 12 asm-printer
14
15 declare float @qux(float %y)
16
17 define float @array(float %a) nounwind {
18   %n = fmul float %a, 9.0
19   %m = call float @qux(float %n)
20   %o = fmul float %m, 9.0
21   ret float %o
22 }