1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/test/Bitcode/2006-12-11-Cast-ConstExpr.ll

12 lines
329 B
LLVM
Raw Normal View History

; This test ensures that we get a bitcast constant expression in and out,
; not a sitofp constant expression.
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder < %s
; CHECK: bitcast (
2008-02-17 01:13:09 +01:00
@G = external global i32
2008-02-17 01:13:09 +01:00
define float @tryit(i32 %A) {
2008-02-17 01:15:25 +01:00
ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
}