[llvm-commits] CVS: llvm/test/Regression/Transforms/ScalarRepl/union-pointer.ll
Chris Lattner
sabre at nondot.org
Sun Oct 8 16:27:51 PDT 2006
Changes in directory llvm/test/Regression/Transforms/ScalarRepl:
union-pointer.ll added (r1.1)
---
Log message:
new testcase for SROA for stuff like "union { int*, float* }".
---
Diffs of the changes: (+18 -0)
union-pointer.ll | 18 ++++++++++++++++++
1 files changed, 18 insertions(+)
Index: llvm/test/Regression/Transforms/ScalarRepl/union-pointer.ll
diff -c /dev/null llvm/test/Regression/Transforms/ScalarRepl/union-pointer.ll:1.1
*** /dev/null Sun Oct 8 18:27:47 2006
--- llvm/test/Regression/Transforms/ScalarRepl/union-pointer.ll Sun Oct 8 18:27:37 2006
***************
*** 0 ****
--- 1,18 ----
+
+ ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | not grep alloca &&
+ ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | grep 'ret sbyte'
+
+ target endian = little
+ target pointersize = 32
+ target triple = "i686-apple-darwin8.7.2"
+
+ implementation ; Functions:
+
+ sbyte* %test(short* %X) {
+ %X_addr = alloca short*
+ store short* %X, short** %X_addr
+ %X_addr = cast short** %X_addr to sbyte**
+ %tmp = load sbyte** %X_addr
+ ret sbyte* %tmp
+ }
+
More information about the llvm-commits
mailing list