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