aboutsummaryrefslogtreecommitdiffstats
path: root/test/Bytecode/2006-12-11-Cast-ConstExpr.ll
blob: aa2cf9306fc66c93cbc3577336c14468d4d21a59 (plain)
1
2
3
4
5
6
7
8
; This test ensures that we get a bitcast constant expression in and out,
; not a sitofp constant expression. 
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'bitcast ('
%G = external global int

float %tryit(int %A) {
   ret float bitcast( int ptrtoint (int* %G to int) to float)
}