[llvm-commits] CVS: llvm/test/Regression/Transforms/DSAnalysis/arraytest.ll badcases.ll basictest.ll fieldmerge.ll misctests.ll physicalsubtype.ll structpadding.ll
Reid Spencer
reid at x10sys.com
Thu Nov 23 07:15:49 PST 2006
Changes in directory llvm/test/Regression/Transforms/DSAnalysis:
arraytest.ll updated: 1.4 -> 1.5
badcases.ll updated: 1.4 -> 1.5
basictest.ll updated: 1.4 -> 1.5
fieldmerge.ll updated: 1.4 -> 1.5
misctests.ll updated: 1.4 -> 1.5
physicalsubtype.ll updated: 1.4 -> 1.5
structpadding.ll updated: 1.4 -> 1.5
---
Log message:
Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.
---
Diffs of the changes: (+19 -19)
arraytest.ll | 14 +++++++-------
badcases.ll | 2 +-
basictest.ll | 2 +-
fieldmerge.ll | 4 ++--
misctests.ll | 4 ++--
physicalsubtype.ll | 4 ++--
structpadding.ll | 8 ++++----
7 files changed, 19 insertions(+), 19 deletions(-)
Index: llvm/test/Regression/Transforms/DSAnalysis/arraytest.ll
diff -u llvm/test/Regression/Transforms/DSAnalysis/arraytest.ll:1.4 llvm/test/Regression/Transforms/DSAnalysis/arraytest.ll:1.5
--- llvm/test/Regression/Transforms/DSAnalysis/arraytest.ll:1.4 Sun Aug 27 17:41:58 2006
+++ llvm/test/Regression/Transforms/DSAnalysis/arraytest.ll Thu Nov 23 09:14:52 2006
@@ -5,35 +5,35 @@
implementation
sbyte *%test1(%crazy* %P1) { ; No merging, constant indexing
- %P = getelementptr %crazy* %P1, long 0, long 0, ubyte 0, long 1
+ %P = getelementptr %crazy* %P1, long 0, long 0, uint 0, long 1
ret sbyte *%P
}
sbyte *%test2(%crazy* %P1) { ; No merging, constant indexing
- %P = getelementptr %crazy* %P1, long 0, long 1, ubyte 0, long 0
+ %P = getelementptr %crazy* %P1, long 0, long 1, uint 0, long 0
ret sbyte *%P
}
sbyte *%test3(%crazy* %P1) { ; No merging, constant indexing, must handle outter index
- %P = getelementptr %crazy* %P1, long -1, long 0, ubyte 0, long 0
+ %P = getelementptr %crazy* %P1, long -1, long 0, uint 0, long 0
ret sbyte *%P
}
sbyte *%mtest1(%crazy* %P1, long %idx) { ; Merging deepest array
- %P = getelementptr %crazy* %P1, long 0, long 0, ubyte 0, long %idx
+ %P = getelementptr %crazy* %P1, long 0, long 0, uint 0, long %idx
ret sbyte *%P
}
sbyte *%mtest2(%crazy* %P1, long %idx) { ; Merge top array
- %P = getelementptr %crazy* %P1, long 0, long %idx, ubyte 0, long 1
+ %P = getelementptr %crazy* %P1, long 0, long %idx, uint 0, long 1
ret sbyte *%P
}
sbyte *%mtest3(%crazy* %P1, long %idx) { ; Merge array %crazy is in
- %P = getelementptr %crazy* %P1, long %idx, long 0, ubyte 0, long 1
+ %P = getelementptr %crazy* %P1, long %idx, long 0, uint 0, long 1
ret sbyte *%P
}
sbyte *%m2test1(%crazy* %P1, long %idx) { ; Merge two arrays
- %P = getelementptr %crazy* %P1, long 0, long %idx, ubyte 0, long %idx
+ %P = getelementptr %crazy* %P1, long 0, long %idx, uint 0, long %idx
ret sbyte *%P
}
Index: llvm/test/Regression/Transforms/DSAnalysis/badcases.ll
diff -u llvm/test/Regression/Transforms/DSAnalysis/badcases.ll:1.4 llvm/test/Regression/Transforms/DSAnalysis/badcases.ll:1.5
--- llvm/test/Regression/Transforms/DSAnalysis/badcases.ll:1.4 Sun Aug 27 17:41:58 2006
+++ llvm/test/Regression/Transforms/DSAnalysis/badcases.ll Thu Nov 23 09:14:52 2006
@@ -15,7 +15,7 @@
void %test2({int, int} * %X) {
getelementptr {int, int} * %X, long 0
%Y = cast {int, int} * %X to {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte} *
- %Z = getelementptr {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte}* %Y, long 0, ubyte 7
+ %Z = getelementptr {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte}* %Y, long 0, uint 7
store sbyte 6, sbyte *%Z
ret void
}
Index: llvm/test/Regression/Transforms/DSAnalysis/basictest.ll
diff -u llvm/test/Regression/Transforms/DSAnalysis/basictest.ll:1.4 llvm/test/Regression/Transforms/DSAnalysis/basictest.ll:1.5
--- llvm/test/Regression/Transforms/DSAnalysis/basictest.ll:1.4 Sun Aug 27 17:41:58 2006
+++ llvm/test/Regression/Transforms/DSAnalysis/basictest.ll Thu Nov 23 09:14:52 2006
@@ -11,7 +11,7 @@
store int* %E, int** %X
%F = malloc {int}
- %G = getelementptr {int}* %F, long 0, ubyte 0
+ %G = getelementptr {int}* %F, long 0, uint 0
store int* %G, int** %X
%K = malloc int **
Index: llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll
diff -u llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll:1.4 llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll:1.5
--- llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll:1.4 Sun Aug 27 17:41:58 2006
+++ llvm/test/Regression/Transforms/DSAnalysis/fieldmerge.ll Thu Nov 23 09:14:52 2006
@@ -8,10 +8,10 @@
void %bar(%str* %S, bool %C) {
br bool %C, label %T, label %F
T:
- %A = getelementptr %str* %S, long 0, ubyte 0
+ %A = getelementptr %str* %S, long 0, uint 0
br label %Out
F:
- %B = getelementptr %str* %S, long 0, ubyte 1
+ %B = getelementptr %str* %S, long 0, uint 1
br label %Out
Out:
%P = phi int** [%A, %T], [%B, %F]
Index: llvm/test/Regression/Transforms/DSAnalysis/misctests.ll
diff -u llvm/test/Regression/Transforms/DSAnalysis/misctests.ll:1.4 llvm/test/Regression/Transforms/DSAnalysis/misctests.ll:1.5
--- llvm/test/Regression/Transforms/DSAnalysis/misctests.ll:1.4 Sun Aug 27 17:41:58 2006
+++ llvm/test/Regression/Transforms/DSAnalysis/misctests.ll Thu Nov 23 09:14:52 2006
@@ -50,9 +50,9 @@
}
int %test6({int, int}* %A) {
- %B = getelementptr {int, int}* %A, long 0, ubyte 0
+ %B = getelementptr {int, int}* %A, long 0, uint 0
%b = load int* %B
- %C = getelementptr {int, int}* %A, long 0, ubyte 1
+ %C = getelementptr {int, int}* %A, long 0, uint 1
%c = load int* %C
%d = add int %b, %c
ret int %d
Index: llvm/test/Regression/Transforms/DSAnalysis/physicalsubtype.ll
diff -u llvm/test/Regression/Transforms/DSAnalysis/physicalsubtype.ll:1.4 llvm/test/Regression/Transforms/DSAnalysis/physicalsubtype.ll:1.5
--- llvm/test/Regression/Transforms/DSAnalysis/physicalsubtype.ll:1.4 Sun Aug 27 17:41:58 2006
+++ llvm/test/Regression/Transforms/DSAnalysis/physicalsubtype.ll Thu Nov 23 09:14:52 2006
@@ -6,10 +6,10 @@
%DT = type { int, int*, int } ; "derived type"
int %test(%DT* %DT) {
- %DTp = getelementptr %DT* %DT, long 0, ubyte 0
+ %DTp = getelementptr %DT* %DT, long 0, uint 0
%A = load int* %DTp
%ST = cast %DT* %DT to %ST*
- %STp = getelementptr %ST* %ST, long 0, ubyte 0
+ %STp = getelementptr %ST* %ST, long 0, uint 0
%B = load int* %STp
%C = sub int %A, %B ; A & B are equal, %C = 0
ret int %C
Index: llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll
diff -u llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll:1.4 llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll:1.5
--- llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll:1.4 Sun Aug 27 17:41:58 2006
+++ llvm/test/Regression/Transforms/DSAnalysis/structpadding.ll Thu Nov 23 09:14:52 2006
@@ -5,10 +5,10 @@
implementation
void %bar(%str* %S, %str* %T) {
- %A1 = getelementptr %str* %S, long 0, ubyte 0
- %B1 = getelementptr %str* %S, long 0, ubyte 1
- %A2 = getelementptr %str* %S, long 0, ubyte 0
- %B2 = getelementptr %str* %S, long 0, ubyte 1
+ %A1 = getelementptr %str* %S, long 0, uint 0
+ %B1 = getelementptr %str* %S, long 0, uint 1
+ %A2 = getelementptr %str* %S, long 0, uint 0
+ %B2 = getelementptr %str* %S, long 0, uint 1
%a1 = cast int* %A1 to long*
%a2 = cast int* %A2 to long*
%V = load long* %a1
More information about the llvm-commits
mailing list