Constant fold the isnan intrinsic
[oota-llvm.git] / test / CodeGen / X86 / fp_load_cast_fold.llx
1 ; RUN: llvm-as < %s | llc -march=x86 | grep fild | not grep ESP
2 double %short(short* %P) {
3         %V = load short* %P
4         %V2 = cast short %V to double
5         ret double %V2
6 }
7 double %int(int* %P) {
8         %V = load int* %P
9         %V2 = cast int %V to double
10         ret double %V2
11 }
12 double %long(long* %P) {
13         %V = load long* %P
14         %V2 = cast long %V to double
15         ret double %V2
16 }
17