71823ab14614a74c01b9a15e086722a1e364e79c
[oota-llvm.git] / test / Integer / fold-fpcast_bt.ll
1 ; RUN: llvm-as < %s | llvm-dis | not grep bitcast
2
3 define i60 %test1() {
4    ret i60 fptoui(float 3.7 to i60)
5 }
6
7 define float %test2() {
8   ret float uitofp(i60 17 to float)
9 }
10
11 define i64 %test3() {
12   ret i64 bitcast (double 3.1415926 to i64)
13 }
14
15 define double %test4() {
16   ret double bitcast (i64 42 to double)
17 }
18