view test/Bitcode/2006-12-11-Cast-ConstExpr.ll @ 115:95b91bc9a2f8

cleanupflag
author mir3636
date Fri, 05 Aug 2016 19:04:52 +0900
parents 54457678186b
children
line wrap: on
line source

; 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)
}