For PR1319:
[oota-llvm.git] / test / CodeGen / X86 / bitcast.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64
3 ; PR1033
4
5 long %test1(double %t) {
6   %u = bitcast double %t to long
7   ret long %u
8 }
9
10 double %test2(long %t) {
11   %u = bitcast long %t to double
12   ret double %u
13 }
14
15 int %test3(float %t) {
16   %u = bitcast float %t to int
17   ret int %u
18 }
19
20 float %test4(int %t) {
21   %u = bitcast int %t to float
22   ret float %u
23 }