blob: 66e972bad82378709080a0e2f622c4d1a5820881 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
2
3int %test1() {
Dale Johannesend727a2b2007-09-05 17:50:36 +00004 ret int bitcast(float 0x400D9999A0000000 to int)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005}
6
7float %test2() {
8 ret float bitcast(int 17 to float)
9}
10
11long %test3() {
Dale Johannesend727a2b2007-09-05 17:50:36 +000012 ret long bitcast (double 0x400921FB4D12D84A to long)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013}
14
15double %test4() {
16 ret double bitcast (long 42 to double)
17}
18