vector compares aren't allowed. It doesn't make sense to have an xfailed
[oota-llvm.git] / test / Feature / fold-fpcast.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis -o /dev/null && 
2 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
3
4 int %test1() {
5    ret int bitcast(float 3.7 to int)
6 }
7
8 float %test2() {
9   ret float bitcast(int 17 to float)
10 }
11
12 long %test3() {
13   ret long bitcast (double 3.1415926 to long)
14 }
15
16 double %test4() {
17   ret double bitcast (long 42 to double)
18 }
19