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=X8732_SSE,NOX87
8 define void @test(i32 %i, i64 %l, float* %pf, double* %pd, fp128* %pld) nounwind readnone {
12 ; NOX87-NOT: {{ }}f{{.*}}
15 ; NOX8732: __floatunsisf
16 %tmp = uitofp i32 %i to float
19 ; NOX8732: __floatdisf
20 %tmp1 = sitofp i64 %l to float
24 %tmp2 = fadd float %tmp, %tmp1
27 store float %tmp2, float* %pf
30 ; NOX87: __floatunsidf
31 %tmp3 = uitofp i32 %i to double
35 %tmp4 = sitofp i64 %l to double
39 %tmp5 = fadd double %tmp3, %tmp4
42 store double %tmp5, double* %pd
46 %tmp6 = sitofp i32 %i to fp128
49 ; NOX87: __floatunditf
50 %tmp7 = uitofp i64 %l to fp128
54 %tmp8 = fadd fp128 %tmp6, %tmp7
55 store fp128 %tmp8, fp128* %pld