blob: 8e5f8386d77539e22bbb826866ac0994968d6266 [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() {
Dale Johannesenc2ec2ba2007-09-05 17:50:36 +00004 ret i60 fptoui(float 0x400D9999A0000000 to i60)
Reid Spencerc0948362007-01-16 18:08:22 +00005}
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() {
Dale Johannesenc2ec2ba2007-09-05 17:50:36 +000012 ret i64 bitcast (double 0x400921FB4D12D84A to i64)
Reid Spencerc0948362007-01-16 18:08:22 +000013}
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() {
Dale Johannesenc2ec2ba2007-09-05 17:50:36 +000020 ret i30 fptoui(float 0x400D9999A0000000 to i30)
Zhou Sheng9160a842007-01-19 14:30:59 +000021}
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() {
Dale Johannesenc2ec2ba2007-09-05 17:50:36 +000028 ret i64 bitcast (double 0x400921FB4D12D84A 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}