new testcase for PR1296
[oota-llvm.git] / test / Bytecode / 2006-12-11-Cast-ConstExpr.ll
1 ; This test ensures that we get a bitcast constant expression in and out,
2 ; not a sitofp constant expression. 
3 ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'bitcast ('
4 %G = external global int
5
6 float %tryit(int %A) {
7    ret float bitcast( int ptrtoint (int* %G to int) to float)
8 }