blob: 8e5f8386d77539e22bbb826866ac0994968d6266 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llvm-dis | not grep bitcast
2
3define i60 @test1() {
Dale Johannesend727a2b2007-09-05 17:50:36 +00004 ret i60 fptoui(float 0x400D9999A0000000 to i60)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005}
6
7define float @test2() {
8 ret float uitofp(i60 17 to float)
9}
10
11define i64 @test3() {
Dale Johannesend727a2b2007-09-05 17:50:36 +000012 ret i64 bitcast (double 0x400921FB4D12D84A to i64)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013}
14
15define double @test4() {
16 ret double bitcast (i64 42 to double)
17}
18
19define i30 @test5() {
Dale Johannesend727a2b2007-09-05 17:50:36 +000020 ret i30 fptoui(float 0x400D9999A0000000 to i30)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021}
22
23define float @test6() {
24 ret float uitofp(i30 17 to float)
25}
26
27define i64 @test7() {
Dale Johannesend727a2b2007-09-05 17:50:36 +000028 ret i64 bitcast (double 0x400921FB4D12D84A to i64)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000029}
30
31define double @test8() {
32 ret double bitcast (i64 42 to double)
33}