2007-01-16 18:08:22 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | not grep bitcast
|
|
|
|
|
2007-04-14 16:19:26 +00:00
|
|
|
define i60 @test1() {
|
2007-01-16 18:08:22 +00:00
|
|
|
ret i60 fptoui(float 3.7 to i60)
|
|
|
|
}
|
|
|
|
|
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-01-16 18:08:22 +00:00
|
|
|
ret i64 bitcast (double 3.1415926 to i64)
|
|
|
|
}
|
|
|
|
|
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-01-19 14:30:59 +00:00
|
|
|
ret i30 fptoui(float 3.7 to i30)
|
|
|
|
}
|
|
|
|
|
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() {
|
|
|
|
ret i64 bitcast (double 3.1415926 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
|
|
|
}
|