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