[llvm-commits] CVS: llvm/test/Regression/Transforms/BasicAA/featuretest.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Oct 25 17:30:01 PDT 2002
Changes in directory llvm/test/Regression/Transforms/BasicAA:
featuretest.ll updated: 1.1 -> 1.2
---
Log message:
Update test to use long instead of uint getelementptr subscripts
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/BasicAA/featuretest.ll
diff -u llvm/test/Regression/Transforms/BasicAA/featuretest.ll:1.1 llvm/test/Regression/Transforms/BasicAA/featuretest.ll:1.2
--- llvm/test/Regression/Transforms/BasicAA/featuretest.ll:1.1 Sun Sep 8 13:08:36 2002
+++ llvm/test/Regression/Transforms/BasicAA/featuretest.ll Fri Oct 25 17:29:07 2002
@@ -10,14 +10,14 @@
; Array test: Test that operations on one local array do not invalidate
; operations on another array. Important for scientific codes.
;
-int %different_array_test(uint %A, uint %B) {
+int %different_array_test(long %A, long %B) {
%Array1 = alloca int, uint 100
%Array2 = alloca int, uint 200
- %pointer = getelementptr int* %Array1, uint %A
+ %pointer = getelementptr int* %Array1, long %A
%val = load int* %pointer
- %pointer2 = getelementptr int* %Array2, uint %B
+ %pointer2 = getelementptr int* %Array2, long %B
store int 7, int* %pointer2
%REMOVE = load int* %pointer ; redundant with above load
@@ -30,8 +30,8 @@
;
int %constant_array_index_test() {
%Array = alloca int, uint 100
- %P1 = getelementptr int* %Array, uint 7
- %P2 = getelementptr int* %Array, uint 6
+ %P1 = getelementptr int* %Array, long 7
+ %P2 = getelementptr int* %Array, long 6
%A = load int* %P1
store int 1, int* %P2 ; Should not invalidate load
More information about the llvm-commits
mailing list