blob: d8bc0695eb0042458d18b20f4fd15f940ea7c2f2 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
2; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64
3; PR1033
4
5long %test1(double %t) {
6 %u = bitcast double %t to long
7 ret long %u
8}
9
10double %test2(long %t) {
11 %u = bitcast long %t to double
12 ret double %u
13}
14
15int %test3(float %t) {
16 %u = bitcast float %t to int
17 ret int %u
18}
19
20float %test4(int %t) {
21 %u = bitcast int %t to float
22 ret float %u
23}