Home | History | Annotate | Download | only in Mips
      1 ; RUN: llc -march=mips -mattr=single-float  < %s | FileCheck %s
      2 
      3 define double @int2fp(i32 %a) nounwind {
      4 entry:
      5 ; CHECK: int2fp
      6 ; CHECK: __floatsidf
      7 	sitofp i32 %a to double		; <double>:0 [#uses=1]
      8 	ret double %0
      9 }
     10 
     11 define double @uint2double(i32 %a) nounwind {
     12 entry:
     13 ; CHECK: uint2double
     14 ; CHECK: __floatunsidf
     15 	uitofp i32 %a to double		; <double>:0 [#uses=1]
     16 	ret double %0
     17 }
     18 
     19 define i32 @double2int(double %a) nounwind {
     20 entry:
     21 ; CHECK: double2int
     22 ; CHECK: __fixdfsi
     23   fptosi double %a to i32   ; <i32>:0 [#uses=1]
     24   ret i32 %0
     25 }
     26 
     27 define i32 @double2uint(double %a) nounwind {
     28 entry:
     29 ; CHECK: double2uint
     30 ; CHECK: __fixunsdfsi
     31   fptoui double %a to i32   ; <i32>:0 [#uses=1]
     32   ret i32 %0
     33 }
     34 
     35