llvm-6502/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
Duncan P. N. Exon Smith 13f5c5896d verify-uselistorder: Force -preserve-bc-use-list-order
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216022 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-19 21:08:27 +00:00

12 lines
329 B
LLVM

; 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 (
@G = external global i32
define float @tryit(i32 %A) {
ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
}