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