1 ; RUN: llvm-as < %s | llc -march=x86 | grep ST | not grep 'fadd\|fsub\|fdiv\|fmul'
3 ; Test that the load of the constant is folded into the operation.
5 double %test_add(double %P) {
6 %tmp.1 = add double %P, 0x405EC00000000000
10 double %test_mul(double %P) {
11 %tmp.1 = mul double %P, 0x405EC00000000000
15 double %test_sub(double %P) {
16 %tmp.1 = sub double %P, 0x405EC00000000000
20 double %test_subr(double %P) {
21 %tmp.1 = sub double 0x405EC00000000000, %P
25 double %test_div(double %P) {
26 %tmp.1 = div double %P, 0x405EC00000000000
30 double %test_divr(double %P) {
31 %tmp.1 = div double 0x405EC00000000000, %P