1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
Duncan P. N. Exon Smith d5508bfe28 verify-uselistorder: Change the default -num-shuffles=5
Change the default for `-num-shuffles` to 5 and better document the
algorithm in the header docs of `verify-uselistorder`.

llvm-svn: 214419
2014-07-31 18:46:24 +00:00

12 lines
357 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 -preserve-bc-use-list-order
; CHECK: bitcast (
@G = external global i32
define float @tryit(i32 %A) {
ret float bitcast( i32 ptrtoint (i32* @G to i32) to float)
}