aboutsummaryrefslogtreecommitdiffstats
path: root/test/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-25 22:29:07 +0000
committerChris Lattner <sabre@nondot.org>2002-10-25 22:29:07 +0000
commit66486455590b68167103a87ccf0655e9fa9df4c5 (patch)
tree0842f6f3c5ac1b98266093fe5d216ed00826be66 /test/Analysis
parentc954161ea70d7afa70977c6cac6fab662e64e227 (diff)
downloadexternal_llvm-66486455590b68167103a87ccf0655e9fa9df4c5.zip
external_llvm-66486455590b68167103a87ccf0655e9fa9df4c5.tar.gz
external_llvm-66486455590b68167103a87ccf0655e9fa9df4c5.tar.bz2
Update test to use long instead of uint getelementptr subscripts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r--test/Analysis/BasicAA/featuretest.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Analysis/BasicAA/featuretest.ll b/test/Analysis/BasicAA/featuretest.ll
index fdbb0ad..d2be1ce 100644
--- a/test/Analysis/BasicAA/featuretest.ll
+++ b/test/Analysis/BasicAA/featuretest.ll
@@ -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 %different_array_test(uint %A, uint %B) {
;
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