1 ; RUN: llc < %s -mtriple=i686-- -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]
9 ; CHECK-LABEL: foo_add:
10 ; CHECK: fadd dword ptr
12 define double @foo_mul(double %P) {
13 %tmp.1 = fmul double %P, 1.230000e+02 ; <double> [#uses=1]
16 ; CHECK-LABEL: foo_mul:
17 ; CHECK: fmul dword ptr
19 define double @foo_sub(double %P) {
20 %tmp.1 = fsub double %P, 1.230000e+02 ; <double> [#uses=1]
23 ; CHECK-LABEL: foo_sub:
24 ; CHECK: fadd dword ptr
26 define double @foo_subr(double %P) {
27 %tmp.1 = fsub double 1.230000e+02, %P ; <double> [#uses=1]
30 ; CHECK-LABEL: foo_subr:
31 ; CHECK: fsub qword ptr
33 define double @foo_div(double %P) {
34 %tmp.1 = fdiv double %P, 1.230000e+02 ; <double> [#uses=1]
37 ; CHECK-LABEL: foo_div:
38 ; CHECK: fdiv dword ptr
40 define double @foo_divr(double %P) {
41 %tmp.1 = fdiv double 1.230000e+02, %P ; <double> [#uses=1]
44 ; CHECK-LABEL: foo_divr:
45 ; CHECK: fdiv qword ptr