1 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel -mcpu=i486 | \
2 ; RUN: grep {fadd\\|fsub\\|fdiv\\|fmul} | not grep -i ST
4 ; Test that the load of the constant is folded into the operation.
7 define double @foo_add(double %P) {
8 %tmp.1 = fadd double %P, 1.230000e+02 ; <double> [#uses=1]
12 define double @foo_mul(double %P) {
13 %tmp.1 = fmul double %P, 1.230000e+02 ; <double> [#uses=1]
17 define double @foo_sub(double %P) {
18 %tmp.1 = fsub double %P, 1.230000e+02 ; <double> [#uses=1]
22 define double @foo_subr(double %P) {
23 %tmp.1 = fsub double 1.230000e+02, %P ; <double> [#uses=1]
27 define double @foo_div(double %P) {
28 %tmp.1 = fdiv double %P, 1.230000e+02 ; <double> [#uses=1]
32 define double @foo_divr(double %P) {
33 %tmp.1 = fdiv double 1.230000e+02, %P ; <double> [#uses=1]