blob: c7e31b992c22ca8b9a0e431a2ccb11a259a5f350 [file] [log] [blame]
Reid Spencerc0948362007-01-16 18:08:22 +00001; RUN: llvm-as < %s | llvm-dis | not grep bitcast
2
Reid Spencer2b88e5e2007-04-14 16:19:26 +00003define i60 @test1() {
Reid Spencerc0948362007-01-16 18:08:22 +00004 ret i60 fptoui(float 3.7 to i60)
5}
6
Reid Spencer2b88e5e2007-04-14 16:19:26 +00007define float @test2() {
Reid Spencerc0948362007-01-16 18:08:22 +00008 ret float uitofp(i60 17 to float)
9}
10
Reid Spencer2b88e5e2007-04-14 16:19:26 +000011define i64 @test3() {
Reid Spencerc0948362007-01-16 18:08:22 +000012 ret i64 bitcast (double 3.1415926 to i64)
13}
14
Reid Spencer2b88e5e2007-04-14 16:19:26 +000015define double @test4() {
Reid Spencerc0948362007-01-16 18:08:22 +000016 ret double bitcast (i64 42 to double)
17}
18
Reid Spencer2b88e5e2007-04-14 16:19:26 +000019define i30 @test5() {
Zhou Sheng9160a842007-01-19 14:30:59 +000020 ret i30 fptoui(float 3.7 to i30)
21}
22
Reid Spencer2b88e5e2007-04-14 16:19:26 +000023define float @test6() {
Zhou Sheng9160a842007-01-19 14:30:59 +000024 ret float uitofp(i30 17 to float)
25}
26
Reid Spencer2b88e5e2007-04-14 16:19:26 +000027define i64 @test7() {
28 ret i64 bitcast (double 3.1415926 to i64)
Zhou Sheng9160a842007-01-19 14:30:59 +000029}
30
Reid Spencer2b88e5e2007-04-14 16:19:26 +000031define double @test8() {
32 ret double bitcast (i64 42 to double)
Zhou Sheng9160a842007-01-19 14:30:59 +000033}