From 720d2108be6f44e6d37ca6d0d71004b7be600886 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 24 Jan 2006 19:34:57 +0000 Subject: [PATCH] testcase that crashes scalarrepl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25586 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2006-01-24-IllegalUnionPromoteCrash.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll diff --git a/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll b/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll new file mode 100644 index 00000000000..58f7c04e054 --- /dev/null +++ b/test/Transforms/ScalarRepl/2006-01-24-IllegalUnionPromoteCrash.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -scalarrepl -disable-output + +target endian = big +target pointersize = 32 + +int %test(long %L) { + %X = alloca int + %Y = cast int* %X to ulong* + store ulong 0, ulong* %Y + %Z = load int *%X + ret int %Z +}