1; RUN: llc < %s -mtriple=i686-- | FileCheck %s -check-prefixes=X8732,X87 2; RUN: llc < %s -mtriple=x86_64-- -mattr=-sse | FileCheck %s -check-prefixes=X8732,X87 3; RUN: llc < %s -mtriple=i686-- -mattr=-x87 | FileCheck %s -check-prefixes=NOX8732,NOX87 4; RUN: llc < %s -mtriple=x86_64-- -mattr=-x87,-sse | FileCheck %s -check-prefixes=NOX8732,NOX87 5; RUN: llc < %s -mtriple=i686-- -mattr=-x87,+sse | FileCheck %s -check-prefixes=NOX8732,NOX87 6; RUN: llc < %s -mtriple=x86_64-- -mattr=-x87,-sse2 | FileCheck %s -check-prefixes=NOX87 7 8define 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; NOX8732: __floatunsisf 16 %tmp = uitofp i32 %i to float 17 18; X8732: fild 19; NOX8732: __floatdisf 20 %tmp1 = sitofp i64 %l to float 21 22; X8732: fadd 23; NOX8732: __addsf3 24 %tmp2 = fadd float %tmp, %tmp1 25 26; X8732: 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