blob: 6df8711fe708898a5d3f46c45182532c6df56026 [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.
Tanya Lattnere22b7d02008-02-17 00:13:09 +00003; RUN: llvm-as < %s | llvm-dis | \
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004; RUN: grep {bitcast (}
5
Tanya Lattnere22b7d02008-02-17 00:13:09 +00006@G = external global i32
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007
Tanya Lattnere22b7d02008-02-17 00:13:09 +00008define float @tryit(i32 %A) {
Chris Lattner25f69312008-02-17 00:15:25 +00009 ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}