blob: 7e6bb7b6f9255b35b698ce62926913a16f2e8d07 [file] [log] [blame]
Reid Spencer840cc9e2006-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 Lattnerc36fefe2008-02-17 00:13:09 +00003; RUN: llvm-as < %s | llvm-dis | \
Reid Spencer892c86f2007-04-15 10:11:13 +00004; RUN: grep {bitcast (}
5
Tanya Lattnerc36fefe2008-02-17 00:13:09 +00006@G = external global i32
Reid Spencer840cc9e2006-12-11 23:19:53 +00007
Tanya Lattnerc36fefe2008-02-17 00:13:09 +00008define float @tryit(i32 %A) {
9 ret float sitofp( i32 ptrtoint (i32* @G to i32) to float)
Reid Spencer840cc9e2006-12-11 23:19:53 +000010}