Reid Spencer | 840cc9e | 2006-12-11 23:19:53 +0000 | [diff] [blame] | 1 | ; This test ensures that we get a bitcast constant expression in and out, |
2 | ; not a sitofp constant expression. | ||||
Reid Spencer | 6405099 | 2006-12-29 20:01:32 +0000 | [diff] [blame] | 3 | ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'bitcast (' |
Reid Spencer | 840cc9e | 2006-12-11 23:19:53 +0000 | [diff] [blame] | 4 | %G = external global int |
5 | |||||
6 | float %tryit(int %A) { | ||||
7 | ret float bitcast( int ptrtoint (int* %G to int) to float) | ||||
8 | } |