1 ; RUN: llc < %s -mtriple=i686-- | FileCheck %s -check-prefix=X87 2 ; RUN: llc < %s -mtriple=x86_64-- -mattr=-sse | FileCheck %s -check-prefix=X87 3 ; RUN: llc < %s -mtriple=i686-- -mattr=-x87 | FileCheck %s -check-prefix=NOX87 4 ; RUN: llc < %s -mtriple=x86_64-- -mattr=-x87,-sse | FileCheck %s -check-prefix=NOX87 5 ; RUN: llc < %s -mtriple=i686-- -mattr=-x87,+sse | FileCheck %s -check-prefix=NOX87 6 ; RUN: llc < %s -mtriple=x86_64-- -mattr=-x87,-sse2 | FileCheck %s -check-prefix=NOX87 7 8 define void @test(i32 %i, i64 %l, float* %pf, double* %pd, fp128* %pld) nounwind readnone { 9 ; X87-LABEL: test: 10 ; NOX87-LABEL: test: 11 12 ; NOX87-NOT: {{ }}f{{.*}} 13 14 ; X87: fild 15 ; NOX87: __floatunsisf 16 %tmp = uitofp i32 %i to float 17 18 ; X87: fild 19 ; NOX87: __floatdisf 20 %tmp1 = sitofp i64 %l to float 21 22 ; X87: fadd 23 ; NOX87: __addsf3 24 %tmp2 = fadd float %tmp, %tmp1 25 26 ; X87: fstp 27 store float %tmp2, float* %pf 28 29 ; X87: fild 30 ; NOX87: __floatunsidf 31 %tmp3 = uitofp i32 %i to double 32 33 ; X87: fild 34 ; NOX87: __floatdidf 35 %tmp4 = sitofp i64 %l to double 36 37 ; X87: fadd 38 ; NOX87: __adddf3 39 %tmp5 = fadd double %tmp3, %tmp4 40 41 ; X87: fstp 42 store double %tmp5, double* %pd 43 44 ; X87: __floatsitf 45 ; NOX87: __floatsitf 46 %tmp6 = sitofp i32 %i to fp128 47 48 ; X87: __floatunditf 49 ; NOX87: __floatunditf 50 %tmp7 = uitofp i64 %l to fp128 51 52 ; X87: __addtf3 53 ; NOX87: __addtf3 54 %tmp8 = fadd fp128 %tmp6, %tmp7 55 store fp128 %tmp8, fp128* %pld 56 57 ret void 58 } 59