brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · aa0d1c5 Raw
59 lines · plain
1; RUN: llc < %s -mtriple=i686-- | FileCheck %s -check-prefixes=X8732,X872; RUN: llc < %s -mtriple=x86_64-- -mattr=-sse | FileCheck %s -check-prefixes=X8732,X873; RUN: llc < %s -mtriple=i686-- -mattr=-x87 | FileCheck %s -check-prefixes=NOX8732,NOX874; RUN: llc < %s -mtriple=x86_64-- -mattr=-x87,-sse | FileCheck %s -check-prefixes=NOX8732,NOX875; RUN: llc < %s -mtriple=i686-- -mattr=-x87,+sse | FileCheck %s -check-prefixes=NOX8732,NOX876; RUN: llc < %s -mtriple=x86_64-- -mattr=-x87,-sse2 | FileCheck %s -check-prefixes=NOX877 8define void @test(i32 %i, i64 %l, ptr %pf, ptr %pd, ptr %pld) nounwind readnone {9; X87-LABEL: test:10; NOX87-LABEL: test:11 12; NOX87-NOT: {{ }}f{{.*}}13 14; X87: fild15; NOX8732: __floatunsisf16  %tmp = uitofp i32 %i to float17 18; X8732: fild19; NOX8732: __floatdisf20  %tmp1 = sitofp i64 %l to float21 22; X8732: fadd23; NOX8732: __addsf324  %tmp2 = fadd float %tmp, %tmp125 26; X8732: fstp27  store float %tmp2, ptr %pf28 29; X87: fild30; NOX87: __floatunsidf31  %tmp3 = uitofp i32 %i to double32 33; X87: fild34; NOX87: __floatdidf35  %tmp4 = sitofp i64 %l to double36 37; X87: fadd38; NOX87: __adddf339  %tmp5 = fadd double %tmp3, %tmp440 41; X87: fstp42  store double %tmp5, ptr %pd43 44; X87: __floatsitf45; NOX87: __floatsitf46  %tmp6 = sitofp i32 %i to fp12847 48; X87: __floatunditf49; NOX87: __floatunditf50  %tmp7 = uitofp i64 %l to fp12851 52; X87: __addtf353; NOX87: __addtf354  %tmp8 = fadd fp128 %tmp6, %tmp755  store fp128 %tmp8, ptr %pld56 57  ret void58}59