blob: 6df8711fe708898a5d3f46c45182532c6df56026 [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.
Tanya Lattner2d290f92008-02-17 00:13:09 +00003; RUN: llvm-as < %s | llvm-dis | \
Reid Spencerb9e8a942007-04-15 10:11:13 +00004; RUN: grep {bitcast (}
5
Tanya Lattner2d290f92008-02-17 00:13:09 +00006@G = external global i32
Reid Spencer15654912006-12-11 23:19:53 +00007
Tanya Lattner2d290f92008-02-17 00:13:09 +00008define float @tryit(i32 %A) {
Chris Lattner5f137242008-02-17 00:15:25 +00009 ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
Reid Spencer15654912006-12-11 23:19:53 +000010}