[llvm-commits] CVS: llvm/test/Regression/Analysis/BasicAA/modref.ll
Reid Spencer
reid at x10sys.com
Fri Nov 17 21:52:32 PST 2006
Changes in directory llvm/test/Regression/Analysis/BasicAA:
modref.ll added (r1.1)
---
Log message:
Add a simple test to make sure getModRefInfo is 1/2 way sane.
---
Diffs of the changes: (+12 -0)
modref.ll | 12 ++++++++++++
1 files changed, 12 insertions(+)
Index: llvm/test/Regression/Analysis/BasicAA/modref.ll
diff -c /dev/null llvm/test/Regression/Analysis/BasicAA/modref.ll:1.1
*** /dev/null Fri Nov 17 23:52:28 2006
--- llvm/test/Regression/Analysis/BasicAA/modref.ll Fri Nov 17 23:52:18 2006
***************
*** 0 ****
--- 1,12 ----
+ ; RUN: llvm-as < %s | opt -print-all-alias-modref-info -aa-eval -disable-output 2>&1 | not grep NoModRef
+
+ int %callee() {
+ %X = alloca struct { int, int }
+ %Y = int* getelementptr struct { int, int }*, uint 1
+ %Z = int load struct { int, int }*
+ ret %Z
+ }
+
+ int %caller() {
+ %X = int callee();
+ }
More information about the llvm-commits
mailing list