1 ; RUN: llc < %s -march=x86 -x86-asm-syntax=intel -mcpu=i486 | FileCheck %s
2 ; Test that the load of the constant is folded into the operation.
5 define double @foo_add(double %P) {
6 %tmp.1 = fadd double %P, 1.230000e+02 ; <double> [#uses=1]
10 ; CHECK: fadd DWORD PTR
12 define double @foo_mul(double %P) {
13 %tmp.1 = fmul double %P, 1.230000e+02 ; <double> [#uses=1]
17 ; CHECK: fmul DWORD PTR
19 define double @foo_sub(double %P) {
20 %tmp.1 = fsub double %P, 1.230000e+02 ; <double> [#uses=1]
24 ; CHECK: fadd DWORD PTR
26 define double @foo_subr(double %P) {
27 %tmp.1 = fsub double 1.230000e+02, %P ; <double> [#uses=1]
31 ; CHECK: fsub QWORD PTR
33 define double @foo_div(double %P) {
34 %tmp.1 = fdiv double %P, 1.230000e+02 ; <double> [#uses=1]
38 ; CHECK: fdiv DWORD PTR
40 define double @foo_divr(double %P) {
41 %tmp.1 = fdiv double 1.230000e+02, %P ; <double> [#uses=1]
45 ; CHECK: fdiv QWORD PTR