blob: 0d975d4f7687c90a0e025d0475b0d5dc400a21f1 [file] [log] [blame]
Reid Spencer03703f02007-04-11 12:04:33 +00001; RUN: llvm-upgrade < %s | llvm-as | llvm-dis -o /dev/null &&
2; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
Reid Spencer6a126512006-12-11 21:25:10 +00003
4int %test1() {
5 ret int bitcast(float 3.7 to int)
6}
7
8float %test2() {
9 ret float bitcast(int 17 to float)
10}
11
12long %test3() {
13 ret long bitcast (double 3.1415926 to long)
14}
15
16double %test4() {
17 ret double bitcast (long 42 to double)
18}
19