summaryrefslogtreecommitdiffstats
path: root/test/Bitcode/2006-12-11-Cast-ConstExpr.ll
blob: 7e6bb7b6f9255b35b698ce62926913a16f2e8d07 (plain)
1
2
3
4
5
6
7
8
9
10
; This test ensures that we get a bitcast constant expression in and out,
; not a sitofp constant expression. 
; RUN: llvm-as < %s | llvm-dis | \
; RUN:   grep {bitcast (}

@G = external global i32

define float @tryit(i32 %A) {
   ret float sitofp( i32 ptrtoint (i32* @G to i32) to float)
}