[llvm-commits] CVS: llvm/test/Regression/Analysis/BasicAA/global-size.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 26 11:19:42 PST 2004
Changes in directory llvm/test/Regression/Analysis/BasicAA:
global-size.ll added (r1.1)
---
Log message:
new testcase basicaa should handle
---
Diffs of the changes: (+17 -0)
Index: llvm/test/Regression/Analysis/BasicAA/global-size.ll
diff -c /dev/null llvm/test/Regression/Analysis/BasicAA/global-size.ll:1.1
*** /dev/null Fri Nov 26 13:19:38 2004
--- llvm/test/Regression/Analysis/BasicAA/global-size.ll Fri Nov 26 13:19:28 2004
***************
*** 0 ****
--- 1,17 ----
+ ; A store or load cannot alias a global if the accessed amount is larger then
+ ; the global.
+
+ ; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep load
+
+ %B = global short 8
+
+ implementation
+
+ short %test(int *%P) {
+ %X = load short* %B
+ store int 7, int* %P
+ %Y = load short* %B
+ %Z = sub short %Y, %X
+ ret short %Z
+ }
+
More information about the llvm-commits
mailing list