Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; This test ensures that we get a bitcast constant expression in and out, |
2 | ; not a sitofp constant expression. | ||||
3 | ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | \ | ||||
4 | ; RUN: grep {bitcast (} | ||||
5 | |||||
6 | %G = external global int | ||||
7 | |||||
8 | float %tryit(int %A) { | ||||
9 | ret float bitcast( int ptrtoint (int* %G to int) to float) | ||||
10 | } |