2007-04-11 20:04:33 +08:00
|
|
|
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep bitcast
|
2006-12-12 05:25:10 +08:00
|
|
|
|
|
|
|
int %test1() {
|
2007-09-06 01:50:36 +08:00
|
|
|
ret int bitcast(float 0x400D9999A0000000 to int)
|
2006-12-12 05:25:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
float %test2() {
|
|
|
|
ret float bitcast(int 17 to float)
|
|
|
|
}
|
|
|
|
|
|
|
|
long %test3() {
|
2007-09-06 01:50:36 +08:00
|
|
|
ret long bitcast (double 0x400921FB4D12D84A to long)
|
2006-12-12 05:25:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
double %test4() {
|
|
|
|
ret double bitcast (long 42 to double)
|
|
|
|
}
|
|
|
|
|