aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-15 21:14:24 +0000
committerChris Lattner <sabre@nondot.org>2002-10-15 21:14:24 +0000
commitb12805f79556f0fca3ded06c6dfef0bcb7ff885f (patch)
treec74c772b624ea5b6d8629b00f2bc920fa29446fc /test
parentac79a77c0694f5eb0f998f4ae62292d75daa48b7 (diff)
downloadexternal_llvm-b12805f79556f0fca3ded06c6dfef0bcb7ff885f.zip
external_llvm-b12805f79556f0fca3ded06c6dfef0bcb7ff885f.tar.gz
external_llvm-b12805f79556f0fca3ded06c6dfef0bcb7ff885f.tar.bz2
Cleanup testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/DecomposeMultiDimRefs/multidim.ll28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/Transforms/DecomposeMultiDimRefs/multidim.ll b/test/Transforms/DecomposeMultiDimRefs/multidim.ll
index 52b3d3d..48c8763 100644
--- a/test/Transforms/DecomposeMultiDimRefs/multidim.ll
+++ b/test/Transforms/DecomposeMultiDimRefs/multidim.ll
@@ -9,17 +9,17 @@
declare int "printf"(sbyte *, ...)
-declare int "ArrayRef"([100 x int] * %Array, uint %I, uint %J)
+declare int "ArrayRef"([100 x int] * %Array, long %I, long %J)
implementation
int "test"([20 x [10 x [5 x int]]] * %A)
begin
- %idx = getelementptr [20 x [10 x [5 x int]]] * %A, uint 1, uint 2, uint 3, uint 4
+ %idx = getelementptr [20 x [10 x [5 x int]]] * %A, long 1, long 2, long 3, long 4
%i = load int* %idx
;; same as above but via a GEP
- %iptr = getelementptr [20 x [10 x [5 x int]]] * %A, uint 1, uint 2, uint 3, uint 4
+ %iptr = getelementptr [20 x [10 x [5 x int]]] * %A, long 1, long 2, long 3, long 4
%ii= load int* %iptr
;; EXPECTED RESULT: decomposed indices for above LOAD or GEP
@@ -35,10 +35,10 @@ void "InitializeMixed"(%Mixed_struct * %M, int %base)
begin
bb0: ;[#uses=2]
%reg112 = add int %base, 1 ; <int> [#uses=1]
- %reg164-idxcast = cast int %reg112 to uint ; <uint> [#uses=1]
+ %reg164-idxcast = cast int %reg112 to long ; <uint> [#uses=1]
;; Store to a structure field
- %idx1 = getelementptr %Mixed_struct * %M, uint 0, ubyte 3, uint %reg164-idxcast, ubyte 0
+ %idx1 = getelementptr %Mixed_struct * %M, long 0, ubyte 3, long %reg164-idxcast, ubyte 0
store sbyte 81, sbyte* %idx1
;; EXPECTED RESULT: decomposed indices for above STORE
@@ -47,7 +47,7 @@ bb0: ;[#uses=2]
;; store sbyte 81, {sbyte,float}* %ptr2, uint 0, ubyte 0
;; Store to an array field within a structure
- %idx2 = getelementptr %Mixed_struct * %M, uint 0, ubyte 1, uint %reg164-idxcast
+ %idx2 = getelementptr %Mixed_struct * %M, long 0, ubyte 1, long %reg164-idxcast
store double 2.17, double* %idx2
;; EXPECTED RESULT: decomposed indices for above STORE
@@ -62,29 +62,29 @@ int "main"()
begin
bb0: ;[#uses=1]
%Array = alloca [100 x [100 x int]]
- %ArraySlice = getelementptr [100 x [100 x int]]* %Array, uint 0, uint 0
- %trstrP = getelementptr [34 x sbyte] * %trstr, uint 0, uint 0
+ %ArraySlice = getelementptr [100 x [100 x int]]* %Array, long 0, long 0
+ %trstrP = getelementptr [34 x sbyte] * %trstr, long 0, long 0
%trace = call int (sbyte *, ...) * %printf( sbyte * %trstrP )
- %eltVal = call int %ArrayRef([100 x int]* %ArraySlice, uint 8, uint 12)
+ %eltVal = call int %ArrayRef([100 x int]* %ArraySlice, long 8, long 12)
ret int %eltVal
;; ret int 0
end
-int "ArrayRef"([100 x int] * %Array, uint %I, uint %J)
+int "ArrayRef"([100 x int] * %Array, long %I, long %J)
begin
bb0: ;[#uses=3]
- %idx = getelementptr [100 x int]* %Array, uint %I, uint %J ; <int> [#uses=1]
+ %idx = getelementptr [100 x int]* %Array, long %I, long %J ; <int> [#uses=1]
%reg121 = load int* %idx
- ret int %reg121;
+ ret int %reg121
end
-sbyte "PtrRef"(sbyte** %argv, uint %I, uint %J)
+sbyte "PtrRef"(sbyte** %argv, long %I, long %J)
begin
bb0: ;[#uses=3]
- %idx = getelementptr sbyte** %argv, uint %I, uint %J
+ %idx = getelementptr sbyte** %argv, long %I, long %J
%reg222 = load sbyte* %idx
ret sbyte %reg222;
end