Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 | FileCheck %s
      2 
      3 define double @short(i16* %P) {
      4         %V = load i16, i16* %P               ; <i16> [#uses=1]
      5         %V2 = sitofp i16 %V to double           ; <double> [#uses=1]
      6         ret double %V2
      7 }
      8 
      9 define double @int(i32* %P) {
     10         %V = load i32, i32* %P               ; <i32> [#uses=1]
     11         %V2 = sitofp i32 %V to double           ; <double> [#uses=1]
     12         ret double %V2
     13 }
     14 
     15 define double @long(i64* %P) {
     16         %V = load i64, i64* %P               ; <i64> [#uses=1]
     17         %V2 = sitofp i64 %V to double           ; <double> [#uses=1]
     18         ret double %V2
     19 }
     20 
     21 ; CHECK: long
     22 ; CHECK: fild
     23 ; CHECK-NOT: ESP
     24 ; CHECK-NOT: esp
     25 ; CHECK: {{$}}
     26 ; CHECK: ret
     27