Reid Spencer | 1565491 | 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 | b9e8a94 | 2007-04-15 10:11:13 +0000 | [diff] [blame] | 3 | ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | \ |
4 | ; RUN: grep {bitcast (} | ||||
5 | |||||
Reid Spencer | 1565491 | 2006-12-11 23:19:53 +0000 | [diff] [blame] | 6 | %G = external global int |
7 | |||||
8 | float %tryit(int %A) { | ||||
9 | ret float bitcast( int ptrtoint (int* %G to int) to float) | ||||
10 | } |