[llvm-commits] CVS: llvm/test/Regression/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll

Chris Lattner lattner at cs.uiuc.edu
Thu May 29 16:08:02 PDT 2003


Changes in directory llvm/test/Regression/Transforms/ScalarRepl:

2003-05-29-ArrayFail.ll added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll
diff -c /dev/null llvm/test/Regression/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll:1.1
*** /dev/null	Thu May 29 16:07:44 2003
--- llvm/test/Regression/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll	Thu May 29 16:07:34 2003
***************
*** 0 ****
--- 1,11 ----
+ ; RUN: as < %s | opt -scalarrepl | dis | grep alloca | grep '4 x'
+ 
+ ; Test that an array is not incorrectly deconstructed...
+ 
+ int %test() {
+   %X = alloca [4 x int]
+   %Y = getelementptr [4 x int]* %X, long 0, long 0
+   %Z = getelementptr int* %Y, long 1           ; Must preserve arrayness!
+   %A = load int* %Z
+   ret int %A
+ }





More information about the llvm-commits mailing list