diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:46:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-14 16:46:53 +0000 |
| commit | eb81d53e40cef9fecfa35beb858a65e33cb1d3bb (patch) | |
| tree | ef207515bbe99e591acdb090ce862cd5bcf2e4de /llvm/test/Feature/testmemory.ll | |
| parent | 913fe0f5a940b884c69ca6f2dc79582bbb3737f9 (diff) | |
| download | bcm5719-llvm-eb81d53e40cef9fecfa35beb858a65e33cb1d3bb.tar.gz bcm5719-llvm-eb81d53e40cef9fecfa35beb858a65e33cb1d3bb.zip | |
Update LLVM tests to use new pointer indexing, and remove unsized array test support
llvm-svn: 1474
Diffstat (limited to 'llvm/test/Feature/testmemory.ll')
| -rw-r--r-- | llvm/test/Feature/testmemory.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/Feature/testmemory.ll b/llvm/test/Feature/testmemory.ll index b65c4f3fcb4..b2cf0518cc3 100644 --- a/llvm/test/Feature/testmemory.ll +++ b/llvm/test/Feature/testmemory.ll @@ -1,5 +1,5 @@ %struct = type { int , {float, {ubyte } } , ulong } -%complexty = type [{int, {[4 x sbyte *], float}, double}] +%complexty = type {int, {[4 x sbyte *], float}, double} implementation @@ -13,13 +13,13 @@ int "testfunction"(uint %i0, uint %j0) begin %array0 = malloc [4 x ubyte] ; yields {[4 x ubyte]*}:array0 %size = add uint 2, 2 ; yields {uint}:size = uint %4 - %array1 = malloc [ubyte], uint 4 ; yields {[ubyte]*}:array1 - %array2 = malloc [ubyte], uint %size ; yields {[ubyte]*}:array2 + %array1 = malloc ubyte, uint 4 ; yields {ubyte*}:array1 + %array2 = malloc ubyte, uint %size ; yields {ubyte*}:array2 - store ubyte 123, [4 x ubyte]* %array0, uint 2 + store ubyte 123, [4 x ubyte]* %array0, uint 0, uint 2 free [4x ubyte]* %array0 - free [ubyte]* %array1 - free [ubyte]* %array2 + free ubyte* %array1 + free ubyte* %array2 %aa = alloca %complexty, uint 5 @@ -30,8 +30,8 @@ begin %val = load int* %ptr ; yields {int}:val = int %3 %sptr = alloca %struct ; yields {%struct*}:sptr - %ubsptr = getelementptr %struct * %sptr, ubyte 1, ubyte 1 ; yields {{ubyte}*}:ubsptr - store ubyte 4, {ubyte} * %ubsptr, ubyte 0 + %ubsptr = getelementptr %struct * %sptr, uint 0, ubyte 1, ubyte 1 ; yields {{ubyte}*}:ubsptr + store ubyte 4, {ubyte} * %ubsptr, uint 0, ubyte 0 ret int 3 end |

