From a12f1e79bbca1d2519b67249b14259e6af70f083 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 27 May 2003 16:45:09 +0000 Subject: [PATCH] New testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6353 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll diff --git a/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll b/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll new file mode 100644 index 00000000000..353a036d5b3 --- /dev/null +++ b/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll @@ -0,0 +1,8 @@ +; RUN: as < %s | opt -instcombine -disable-output + +%X = global int 5 +long %test() { + %C = add long 1, 2 + %V = add long cast(int* %X to long), %C + ret long %V +}