2006-12-11 23:19:53 +00:00
|
|
|
; This test ensures that we get a bitcast constant expression in and out,
|
|
|
|
; not a sitofp constant expression.
|
2011-05-28 00:15:10 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
2014-08-19 21:08:27 +00:00
|
|
|
; RUN: verify-uselistorder < %s
|
2011-05-28 00:15:10 +00:00
|
|
|
; CHECK: bitcast (
|
2007-04-15 10:11:13 +00:00
|
|
|
|
2008-02-17 00:13:09 +00:00
|
|
|
@G = external global i32
|
2006-12-11 23:19:53 +00:00
|
|
|
|
2008-02-17 00:13:09 +00:00
|
|
|
define float @tryit(i32 %A) {
|
2008-02-17 00:15:25 +00:00
|
|
|
ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
|
2006-12-11 23:19:53 +00:00
|
|
|
}
|