diff --git a/test/Bytecode/2006-12-11-Cast-ConstExpr.ll b/test/Bytecode/2006-12-11-Cast-ConstExpr.ll new file mode 100644 index 00000000000..6bd1603b0a1 --- /dev/null +++ b/test/Bytecode/2006-12-11-Cast-ConstExpr.ll @@ -0,0 +1,8 @@ +; This test ensures that we get a bitcast constant expression in and out, +; not a sitofp constant expression. +; RUN: llvm-as < %s | llvm-dis | grep 'bitcast (' +%G = external global int + +float %tryit(int %A) { + ret float bitcast( int ptrtoint (int* %G to int) to float) +}