diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2006-11-23 15:14:52 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2006-11-23 15:14:52 +0000 |
| commit | 0e43e15fc99897fe844cc22c4cf88cb2021b251a (patch) | |
| tree | 0ff1240dd93a0af820fca1737b50f3efed479e47 /llvm/test/Regression/Analysis/DSGraph | |
| parent | 09b7e4d3ab012ad8272ba4a926acbcee064757a2 (diff) | |
| download | bcm5719-llvm-0e43e15fc99897fe844cc22c4cf88cb2021b251a.tar.gz bcm5719-llvm-0e43e15fc99897fe844cc22c4cf88cb2021b251a.zip | |
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.
llvm-svn: 31896
Diffstat (limited to 'llvm/test/Regression/Analysis/DSGraph')
7 files changed, 15 insertions, 15 deletions
diff --git a/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing.ll b/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing.ll index ed49a85f11d..db956231f8f 100644 --- a/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing.ll +++ b/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing.ll @@ -5,12 +5,12 @@ int %main() { %A = alloca %T %B = alloca { %T } %C = alloca %T* - %Bp = getelementptr { %T }* %B, long 0, ubyte 0 + %Bp = getelementptr { %T }* %B, long 0, uint 0 %i0 = alloca int %i1 = alloca int - %Ap0 = getelementptr %T* %A, long 0, ubyte 0 - %Ap1 = getelementptr %T* %A, long 0, ubyte 1 + %Ap0 = getelementptr %T* %A, long 0, uint 0 + %Ap1 = getelementptr %T* %A, long 0, uint 1 store int* %i0, int** %Ap0 store int* %i1, int** %Ap1 diff --git a/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll b/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll index 9909c20b782..93260e821e4 100644 --- a/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll +++ b/llvm/test/Regression/Analysis/DSGraph/2003-06-29-NodeCollapsing2.ll @@ -9,8 +9,8 @@ int %main() { %A = alloca %T %B = alloca { %T } %C = alloca %T* - %Bp = getelementptr { %T }* %B, long 0, ubyte 0 - %Ap = getelementptr %T* %A, long 0, ubyte 0 + %Bp = getelementptr { %T }* %B, long 0, uint 0 + %Ap = getelementptr %T* %A, long 0, uint 0 store %T* %A, %T** %C store %T* %Bp, %T** %C ; This store was causing merging to happen! diff --git a/llvm/test/Regression/Analysis/DSGraph/2003-07-01-FieldCollapse.ll b/llvm/test/Regression/Analysis/DSGraph/2003-07-01-FieldCollapse.ll index fe13567e5e0..a0ab4924438 100644 --- a/llvm/test/Regression/Analysis/DSGraph/2003-07-01-FieldCollapse.ll +++ b/llvm/test/Regression/Analysis/DSGraph/2003-07-01-FieldCollapse.ll @@ -6,6 +6,6 @@ implementation void %test() { - store short 5, short* getelementptr ({ int, short, short }* %X, long 0, ubyte 1) + store short 5, short* getelementptr ({ int, short, short }* %X, long 0, uint 1) ret void } diff --git a/llvm/test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll b/llvm/test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll index 846a3cb1e88..416fc25bbb8 100644 --- a/llvm/test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll +++ b/llvm/test/Regression/Analysis/DSGraph/2003-11-02-NodeCollapsing.ll @@ -11,8 +11,8 @@ void %test() { %A = alloca double* %B = alloca %S %C = alloca %T - %b = getelementptr %S* %B, long 0, ubyte 0 - %c = getelementptr %T* %C, long 0, ubyte 0 + %b = getelementptr %S* %B, long 0, uint 0 + %c = getelementptr %T* %C, long 0, uint 0 store double* %b, double** %A store double* %c, double** %A diff --git a/llvm/test/Regression/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll b/llvm/test/Regression/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll index 182876c039b..86b053367d6 100644 --- a/llvm/test/Regression/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll +++ b/llvm/test/Regression/Analysis/DSGraph/2005-03-22-IncompleteGlobal.ll @@ -6,7 +6,7 @@ %G = external global %S void %main() { - %b = getelementptr %S* %G, long 0, ubyte 0 + %b = getelementptr %S* %G, long 0, uint 0 store double 0.1, double* %b ret void } diff --git a/llvm/test/Regression/Analysis/DSGraph/PhysicalSubtyping.ll b/llvm/test/Regression/Analysis/DSGraph/PhysicalSubtyping.ll index cdc2cf0238e..6e9676ea125 100644 --- a/llvm/test/Regression/Analysis/DSGraph/PhysicalSubtyping.ll +++ b/llvm/test/Regression/Analysis/DSGraph/PhysicalSubtyping.ll @@ -7,9 +7,9 @@ int %main() { %A = alloca %S - %Ap = getelementptr %S* %A, long 0, ubyte 0 + %Ap = getelementptr %S* %A, long 0, uint 0 %B = alloca %T - %Bp = getelementptr %T* %B, long 0, ubyte 0 + %Bp = getelementptr %T* %B, long 0, uint 0 %C = alloca int* store int* %Ap, int** %C diff --git a/llvm/test/Regression/Analysis/DSGraph/gcsetest.ll b/llvm/test/Regression/Analysis/DSGraph/gcsetest.ll index 37600a89003..b9b28c4f8c5 100644 --- a/llvm/test/Regression/Analysis/DSGraph/gcsetest.ll +++ b/llvm/test/Regression/Analysis/DSGraph/gcsetest.ll @@ -10,21 +10,21 @@ implementation %Ap = malloc int %Bp = malloc int %C = malloc {int*, int*} - %C1p = getelementptr {int*, int*}* %C, long 0, ubyte 0 + %C1p = getelementptr {int*, int*}* %C, long 0, uint 0 store int* %Ap, int** %C1p - %C2p = getelementptr {int*, int*}* %C, long 0, ubyte 1 + %C2p = getelementptr {int*, int*}* %C, long 0, uint 1 store int* %Bp, int** %C2p ret %intpair* %C } int* %getp(%intpair* %P) { - %pp = getelementptr %intpair* %P, long 0, ubyte 0 + %pp = getelementptr %intpair* %P, long 0, uint 0 %V = load int** %pp ret int *%V } int* %getq(%intpair* %P) { - %pp = getelementptr %intpair* %P, long 0, ubyte 1 + %pp = getelementptr %intpair* %P, long 0, uint 1 %V = load int** %pp ret int *%V } |

