Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | not grep bitcast |
2 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 3 | define i60 @test1() { |
Dale Johannesen | c2ec2ba | 2007-09-05 17:50:36 +0000 | [diff] [blame] | 4 | ret i60 fptoui(float 0x400D9999A0000000 to i60) |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 5 | } |
6 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 7 | define float @test2() { |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 8 | ret float uitofp(i60 17 to float) |
9 | } | ||||
10 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 11 | define i64 @test3() { |
Dale Johannesen | c2ec2ba | 2007-09-05 17:50:36 +0000 | [diff] [blame] | 12 | ret i64 bitcast (double 0x400921FB4D12D84A to i64) |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 13 | } |
14 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 15 | define double @test4() { |
Reid Spencer | c094836 | 2007-01-16 18:08:22 +0000 | [diff] [blame] | 16 | ret double bitcast (i64 42 to double) |
17 | } | ||||
18 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 19 | define i30 @test5() { |
Dale Johannesen | c2ec2ba | 2007-09-05 17:50:36 +0000 | [diff] [blame] | 20 | ret i30 fptoui(float 0x400D9999A0000000 to i30) |
Zhou Sheng | 9160a84 | 2007-01-19 14:30:59 +0000 | [diff] [blame] | 21 | } |
22 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 23 | define float @test6() { |
Zhou Sheng | 9160a84 | 2007-01-19 14:30:59 +0000 | [diff] [blame] | 24 | ret float uitofp(i30 17 to float) |
25 | } | ||||
26 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 27 | define i64 @test7() { |
Dale Johannesen | c2ec2ba | 2007-09-05 17:50:36 +0000 | [diff] [blame] | 28 | ret i64 bitcast (double 0x400921FB4D12D84A to i64) |
Zhou Sheng | 9160a84 | 2007-01-19 14:30:59 +0000 | [diff] [blame] | 29 | } |
30 | |||||
Reid Spencer | 2b88e5e | 2007-04-14 16:19:26 +0000 | [diff] [blame] | 31 | define double @test8() { |
32 | ret double bitcast (i64 42 to double) | ||||
Zhou Sheng | 9160a84 | 2007-01-19 14:30:59 +0000 | [diff] [blame] | 33 | } |