blob: 4c768d63cb6a4071feeb278aff10c8ff8a211701 [file] [log] [blame]
Reid Spencer15654912006-12-11 23:19:53 +00001; This test ensures that we get a bitcast constant expression in and out,
2; not a sitofp constant expression.
Reid Spencerb9e8a942007-04-15 10:11:13 +00003; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | \
4; RUN: grep {bitcast (}
5
Reid Spencer15654912006-12-11 23:19:53 +00006%G = external global int
7
8float %tryit(int %A) {
9 ret float bitcast( int ptrtoint (int* %G to int) to float)
10}