blob: 7e6bb7b6f9255b35b698ce62926913a16f2e8d07 [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) {
9 ret float sitofp( i32 ptrtoint (i32* @G to i32) to float)
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010}