From e629ff0be8b072e7fcccd006bed71524604ce4d4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Dec 2006 00:34:27 +0000 Subject: [PATCH] new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32421 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/ScalarRepl/union-packed.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/Transforms/ScalarRepl/union-packed.ll diff --git a/test/Transforms/ScalarRepl/union-packed.ll b/test/Transforms/ScalarRepl/union-packed.ll new file mode 100644 index 00000000000..0df6e3957f7 --- /dev/null +++ b/test/Transforms/ScalarRepl/union-packed.ll @@ -0,0 +1,12 @@ +; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | not grep alloca && +; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep 'bitcast' + +target endian = little + +<4 x int> %test(<4 x float> %X) { + %X_addr = alloca <4 x float> + store <4 x float> %X, <4 x float>* %X_addr + %X_addr = bitcast <4 x float>* %X_addr to <4 x int>* + %tmp = load <4 x int>* %X_addr + ret <4 x int> %tmp +}