1 ; RUN: llvm-as < %s | llc
3 define i8 @test1(double %X) {
4 %tmp.1 = fptosi double %X to i8 ; <i8> [#uses=1]
8 define i16 @test2(double %X) {
9 %tmp.1 = fptosi double %X to i16 ; <i16> [#uses=1]
13 define i32 @test3(double %X) {
14 %tmp.1 = fptosi double %X to i32 ; <i32> [#uses=1]
18 define i64 @test4(double %X) {
19 %tmp.1 = fptosi double %X to i64 ; <i64> [#uses=1]
23 define i8 @test1u(double %X) {
24 %tmp.1 = fptoui double %X to i8 ; <i8> [#uses=1]
28 define i16 @test2u(double %X) {
29 %tmp.1 = fptoui double %X to i16 ; <i16> [#uses=1]
33 define i32 @test3u(double %X) {
34 %tmp.1 = fptoui double %X to i32 ; <i32> [#uses=1]
38 define i64 @test4u(double %X) {
39 %tmp.1 = fptoui double %X to i64 ; <i64> [#uses=1]
43 define i8 @test1f(float %X) {
44 %tmp.1 = fptosi float %X to i8 ; <i8> [#uses=1]
48 define i16 @test2f(float %X) {
49 %tmp.1 = fptosi float %X to i16 ; <i16> [#uses=1]
53 define i32 @test3f(float %X) {
54 %tmp.1 = fptosi float %X to i32 ; <i32> [#uses=1]
58 define i64 @test4f(float %X) {
59 %tmp.1 = fptosi float %X to i64 ; <i64> [#uses=1]
63 define i8 @test1uf(float %X) {
64 %tmp.1 = fptoui float %X to i8 ; <i8> [#uses=1]
68 define i16 @test2uf(float %X) {
69 %tmp.1 = fptoui float %X to i16 ; <i16> [#uses=1]
73 define i32 @test3uf(float %X) {
74 %tmp.1 = fptoui float %X to i32 ; <i32> [#uses=1]
78 define i64 @test4uf(float %X) {
79 %tmp.1 = fptoui float %X to i64 ; <i64> [#uses=1]