blob: d0d3bd4bcb3ae4ff37b1fa92fd7f5d6cb9e78436 [file] [log] [blame]
Chris Lattnerade2f542006-12-05 18:21:52 +00001; 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
6long %test1(double %t) {
7 %u = bitcast double %t to long
8 ret long %u
9}
10
11double %test2(long %t) {
12 %u = bitcast long %t to double
13 ret double %u
14}
15
16int %test3(float %t) {
17 %u = bitcast float %t to int
18 ret int %u
19}
20
21float %test4(int %t) {
22 %u = bitcast int %t to float
23 ret float %u
24}