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