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