blob: 66e972bad82378709080a0e2f622c4d1a5820881 [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() {
Dale Johannesenc2ec2ba2007-09-05 17:50:36 +00004 ret int bitcast(float 0x400D9999A0000000 to int)
Reid Spencer6a126512006-12-11 21:25:10 +00005}
6
7float %test2() {
8 ret float bitcast(int 17 to float)
9}
10
11long %test3() {
Dale Johannesenc2ec2ba2007-09-05 17:50:36 +000012 ret long bitcast (double 0x400921FB4D12D84A to long)
Reid Spencer6a126512006-12-11 21:25:10 +000013}
14
15double %test4() {
16 ret double bitcast (long 42 to double)
17}
18