For PR1319:
[oota-llvm.git] / test / Feature / fold-fpcast.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
2
3 int %test1() {
4    ret int bitcast(float 3.7 to int)
5 }
6
7 float %test2() {
8   ret float bitcast(int 17 to float)
9 }
10
11 long %test3() {
12   ret long bitcast (double 3.1415926 to long)
13 }
14
15 double %test4() {
16   ret double bitcast (long 42 to double)
17 }
18