blob: 35bf7abd584c872067f982f9d9d05d9d173134ca [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.
Chad Rosier20ef3432011-05-28 00:15:10 +00003; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smith13f5c582014-08-19 21:08:27 +00004; RUN: verify-uselistorder < %s
Chad Rosier20ef3432011-05-28 00:15:10 +00005; CHECK: bitcast (
Reid Spencerb9e8a942007-04-15 10:11:13 +00006
Tanya Lattner2d290f92008-02-17 00:13:09 +00007@G = external global i32
Reid Spencer15654912006-12-11 23:19:53 +00008
Tanya Lattner2d290f92008-02-17 00:13:09 +00009define float @tryit(i32 %A) {
Chris Lattner5f137242008-02-17 00:15:25 +000010 ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
Reid Spencer15654912006-12-11 23:19:53 +000011}