1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=c &&
2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | grep '__BITCAST' | wc -l | grep 14
5 %X = bitcast float %F to int
10 %X = bitcast int %I to float
14 long %test3(double %D) {
15 %X = bitcast double %D to long
19 double %test4(long %L) {
20 %X = bitcast long %L to double
24 double %test5(double %D) {
25 %X = bitcast double %D to double
26 %Y = add double %X, 2.0
27 %Z = bitcast double %Y to long
28 %res = bitcast long %Z to double
32 float %test6(float %F) {
33 %X = bitcast float %F to float
34 %Y = add float %X, 2.0
35 %Z = bitcast float %Y to int
36 %res = bitcast int %Z to float
40 int %main(int %argc, sbyte** %argv) {
41 %a = call int %test1(float 3.1415926)
42 %b = call float %test2(int %a)
43 %c = call long %test3(double 3.1415926)
44 %d = call double %test4(long %c)
45 %e = call double %test5(double 7.0)
46 %f = call float %test6(float 7.0)