Home | History | Annotate | Download | only in Generic
      1 ; RUN: llc < %s
      2 
      3 define i8 @test1(double %X) {
      4 	%tmp.1 = fptosi double %X to i8		; <i8> [#uses=1]
      5 	ret i8 %tmp.1
      6 }
      7 
      8 define i16 @test2(double %X) {
      9 	%tmp.1 = fptosi double %X to i16		; <i16> [#uses=1]
     10 	ret i16 %tmp.1
     11 }
     12 
     13 define i32 @test3(double %X) {
     14 	%tmp.1 = fptosi double %X to i32		; <i32> [#uses=1]
     15 	ret i32 %tmp.1
     16 }
     17 
     18 define i64 @test4(double %X) {
     19 	%tmp.1 = fptosi double %X to i64		; <i64> [#uses=1]
     20 	ret i64 %tmp.1
     21 }
     22 
     23 define i8 @test1u(double %X) {
     24 	%tmp.1 = fptoui double %X to i8		; <i8> [#uses=1]
     25 	ret i8 %tmp.1
     26 }
     27 
     28 define i16 @test2u(double %X) {
     29 	%tmp.1 = fptoui double %X to i16		; <i16> [#uses=1]
     30 	ret i16 %tmp.1
     31 }
     32 
     33 define i32 @test3u(double %X) {
     34 	%tmp.1 = fptoui double %X to i32		; <i32> [#uses=1]
     35 	ret i32 %tmp.1
     36 }
     37 
     38 define i64 @test4u(double %X) {
     39 	%tmp.1 = fptoui double %X to i64		; <i64> [#uses=1]
     40 	ret i64 %tmp.1
     41 }
     42 
     43 define i8 @test1f(float %X) {
     44 	%tmp.1 = fptosi float %X to i8		; <i8> [#uses=1]
     45 	ret i8 %tmp.1
     46 }
     47 
     48 define i16 @test2f(float %X) {
     49 	%tmp.1 = fptosi float %X to i16		; <i16> [#uses=1]
     50 	ret i16 %tmp.1
     51 }
     52 
     53 define i32 @test3f(float %X) {
     54 	%tmp.1 = fptosi float %X to i32		; <i32> [#uses=1]
     55 	ret i32 %tmp.1
     56 }
     57 
     58 define i64 @test4f(float %X) {
     59 	%tmp.1 = fptosi float %X to i64		; <i64> [#uses=1]
     60 	ret i64 %tmp.1
     61 }
     62 
     63 define i8 @test1uf(float %X) {
     64 	%tmp.1 = fptoui float %X to i8		; <i8> [#uses=1]
     65 	ret i8 %tmp.1
     66 }
     67 
     68 define i16 @test2uf(float %X) {
     69 	%tmp.1 = fptoui float %X to i16		; <i16> [#uses=1]
     70 	ret i16 %tmp.1
     71 }
     72 
     73 define i32 @test3uf(float %X) {
     74 	%tmp.1 = fptoui float %X to i32		; <i32> [#uses=1]
     75 	ret i32 %tmp.1
     76 }
     77 
     78 define i64 @test4uf(float %X) {
     79 	%tmp.1 = fptoui float %X to i64		; <i64> [#uses=1]
     80 	ret i64 %tmp.1
     81 }
     82