diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-22 16:04:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-22 16:04:03 +0000 |
commit | 6458c31c6706edc9ac09de8f5d8c88dc358816cc (patch) | |
tree | 2cfabfb5e49b4cf142742979f661f9713ce377e4 | |
parent | abfb0b5e70d26859cd06fb005eb82ca91e276cd5 (diff) | |
download | external_llvm-6458c31c6706edc9ac09de8f5d8c88dc358816cc.zip external_llvm-6458c31c6706edc9ac09de8f5d8c88dc358816cc.tar.gz external_llvm-6458c31c6706edc9ac09de8f5d8c88dc358816cc.tar.bz2 |
Covnert tests to not use indexed load/stores
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3454 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Feature/globalvars.ll | 3 | ||||
-rw-r--r-- | test/Feature/recursivetype.ll | 6 | ||||
-rw-r--r-- | test/Feature/testalloca.ll | 3 | ||||
-rw-r--r-- | test/Feature/testmemory.ll | 9 |
4 files changed, 14 insertions, 7 deletions
diff --git a/test/Feature/globalvars.ll b/test/Feature/globalvars.ll index b243ba5..a01c20b 100644 --- a/test/Feature/globalvars.ll +++ b/test/Feature/globalvars.ll @@ -12,7 +12,8 @@ implementation int "foo"(int %blah) begin store int 5, int *%MyVar - store int 12, { \2 *, int } * %MyIntList, uint 0, ubyte 1 + %idx = getelementptr { \2 *, int } * %MyIntList, uint 0, ubyte 1 + store int 12, int* %idx ret int %blah end diff --git a/test/Feature/recursivetype.ll b/test/Feature/recursivetype.ll index 60ffc51..9e16e2c 100644 --- a/test/Feature/recursivetype.ll +++ b/test/Feature/recursivetype.ll @@ -88,7 +88,8 @@ bb3: ret %list* null bb4: - %reg111 = load %list* %reg115, uint 0, ubyte 1 ;;<int> + %idx = getelementptr %list* %reg115, uint 0, ubyte 1 ;;<int> + %reg111 = load int* %idx %cond1013 = setne int %reg111, %Data ;;<bool> br bool %cond1013, label %bb6, label %bb5 @@ -96,6 +97,7 @@ bb5: ret %list* %reg115 bb6: - %reg116 = load %list* %reg115, uint 0, ubyte 0 ;;<%list*> + %idx2 = getelementptr %list* %reg115, uint 0, ubyte 0 ;;<%list*> + %reg116 = load %list** %idx2 br label %bb2 end diff --git a/test/Feature/testalloca.ll b/test/Feature/testalloca.ll index 9e074ce..cf54743 100644 --- a/test/Feature/testalloca.ll +++ b/test/Feature/testalloca.ll @@ -13,7 +13,8 @@ begin %sptr = alloca %struct ; yields {%struct*}:sptr %nsptr = getelementptr %struct * %sptr, uint 0, ubyte 1 ; yields {inners*}:nsptr %ubsptr = getelementptr %inners * %nsptr, uint 0, ubyte 1 ; yields {{ubyte}*}:ubsptr - store ubyte 4, {ubyte} * %ubsptr, uint 0, ubyte 0 + %idx = getelementptr {ubyte} * %ubsptr, uint 0, ubyte 0 + store ubyte 4, ubyte* %idx %fptr = getelementptr %struct * %sptr, uint 0, ubyte 1, ubyte 0 ; yields {float*}:fptr store float 4.0, float * %fptr diff --git a/test/Feature/testmemory.ll b/test/Feature/testmemory.ll index b2cf051..f46dca1 100644 --- a/test/Feature/testmemory.ll +++ b/test/Feature/testmemory.ll @@ -16,14 +16,16 @@ begin %array1 = malloc ubyte, uint 4 ; yields {ubyte*}:array1 %array2 = malloc ubyte, uint %size ; yields {ubyte*}:array2 - store ubyte 123, [4 x ubyte]* %array0, uint 0, uint 2 + %idx = getelementptr [4 x ubyte]* %array0, uint 0, uint 2 + store ubyte 123, ubyte* %idx free [4x ubyte]* %array0 free ubyte* %array1 free ubyte* %array2 %aa = alloca %complexty, uint 5 - store sbyte *null, %complexty* %aa, uint %i0, ubyte 1, ubyte 0, uint %j0 + %idx2 = getelementptr %complexty* %aa, uint %i0, ubyte 1, ubyte 0, uint %j0 + store sbyte *null, sbyte** %idx2 %ptr = alloca int ; yields {int*}:ptr store int 3, int* %ptr ; yields {void} @@ -31,7 +33,8 @@ begin %sptr = alloca %struct ; yields {%struct*}:sptr %ubsptr = getelementptr %struct * %sptr, uint 0, ubyte 1, ubyte 1 ; yields {{ubyte}*}:ubsptr - store ubyte 4, {ubyte} * %ubsptr, uint 0, ubyte 0 + %idx3 = getelementptr {ubyte} * %ubsptr, uint 0, ubyte 0 + store ubyte 4, ubyte* %idx3 ret int 3 end |