[llvm-commits] CVS: llvm/test/Regression/Transforms/ScalarRepl/union-packed.ll
Chris Lattner
sabre at nondot.org
Sun Dec 10 16:34:42 PST 2006
Changes in directory llvm/test/Regression/Transforms/ScalarRepl:
union-packed.ll added (r1.1)
---
Log message:
new testcase
---
Diffs of the changes: (+12 -0)
union-packed.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/Transforms/ScalarRepl/union-packed.ll
diff -c /dev/null llvm/test/Regression/Transforms/ScalarRepl/union-packed.ll:1.1
*** /dev/null Sun Dec 10 18:34:37 2006
--- llvm/test/Regression/Transforms/ScalarRepl/union-packed.ll Sun Dec 10 18:34:27 2006
***************
*** 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
+ }
More information about the llvm-commits
mailing list