blob: 4c768d63cb6a4071feeb278aff10c8ff8a211701 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
8float %tryit(int %A) {
9 ret float bitcast( int ptrtoint (int* %G to int) to float)
10}