1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2 ; RUN: llc < %s -mtriple=i386-unknown-linux-gnu | FileCheck %s 3 4 define double @foo(i16 %a) #0 { 5 ; CHECK-LABEL: foo: 6 ; CHECK: # %bb.0: 7 ; CHECK-NEXT: subl $12, %esp 8 ; CHECK-NEXT: .cfi_def_cfa_offset 16 9 ; CHECK-NEXT: movzwl {{[0-9]+}}(%esp), %eax 10 ; CHECK-NEXT: movl %eax, (%esp) 11 ; CHECK-NEXT: calll __floatsidf 12 ; CHECK-NEXT: addl $12, %esp 13 ; CHECK-NEXT: .cfi_def_cfa_offset 4 14 ; CHECK-NEXT: retl 15 %conv = zext i16 %a to i32 16 %conv1 = sitofp i32 %conv to double 17 ret double %conv1 18 } 19 20 attributes #0 = { "use-soft-float"="true" } 21