2007-01-16 19:08:22 +01:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | not grep bitcast
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define i60 @test1() {
|
2007-09-05 19:50:36 +02:00
|
|
|
ret i60 fptoui(float 0x400D9999A0000000 to i60)
|
2007-01-16 19:08:22 +01:00
|
|
|
}
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define float @test2() {
|
2007-01-16 19:08:22 +01:00
|
|
|
ret float uitofp(i60 17 to float)
|
|
|
|
}
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define i64 @test3() {
|
2007-09-05 19:50:36 +02:00
|
|
|
ret i64 bitcast (double 0x400921FB4D12D84A to i64)
|
2007-01-16 19:08:22 +01:00
|
|
|
}
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define double @test4() {
|
2007-01-16 19:08:22 +01:00
|
|
|
ret double bitcast (i64 42 to double)
|
|
|
|
}
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define i30 @test5() {
|
2007-09-05 19:50:36 +02:00
|
|
|
ret i30 fptoui(float 0x400D9999A0000000 to i30)
|
2007-01-19 15:30:59 +01:00
|
|
|
}
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define float @test6() {
|
2007-01-19 15:30:59 +01:00
|
|
|
ret float uitofp(i30 17 to float)
|
|
|
|
}
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define i64 @test7() {
|
2007-09-05 19:50:36 +02:00
|
|
|
ret i64 bitcast (double 0x400921FB4D12D84A to i64)
|
2007-01-19 15:30:59 +01:00
|
|
|
}
|
|
|
|
|
2007-04-14 18:19:26 +02:00
|
|
|
define double @test8() {
|
|
|
|
ret double bitcast (i64 42 to double)
|
2007-01-19 15:30:59 +01:00
|
|
|
}
|