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 | e5d4efa63ec2c1296e3a1a3e70763df02cd1a7ab (patch) | |
tree | 8d911b30b965f442bda5d3372328d7c093438a6b /test/Feature/testmemory.ll | |
parent | 565706b93e3695da49aee8d2eb67006ffdb2591f (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/testmemory.ll')
-rw-r--r-- | test/Feature/testmemory.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Feature/testmemory.ll b/test/Feature/testmemory.ll index cc6fe71019..573ee982d7 100644 --- a/test/Feature/testmemory.ll +++ b/test/Feature/testmemory.ll @@ -28,7 +28,7 @@ begin %aa = alloca %complexty, uint 5 - %idx2 = getelementptr %complexty* %aa, long %i0, ubyte 1, ubyte 0, long %j0 + %idx2 = getelementptr %complexty* %aa, long %i0, uint 1, uint 0, long %j0 store sbyte *null, sbyte** %idx2 %ptr = alloca int ; yields {int*}:ptr @@ -36,8 +36,8 @@ begin %val = load int* %ptr ; yields {int}:val = int %3 %sptr = alloca %struct ; yields {%struct*}:sptr - %ubsptr = getelementptr %struct * %sptr, long 0, ubyte 1, ubyte 1 ; yields {{ubyte}*}:ubsptr - %idx3 = getelementptr {ubyte} * %ubsptr, long 0, ubyte 0 + %ubsptr = getelementptr %struct * %sptr, long 0, uint 1, uint 1 ; yields {{ubyte}*}:ubsptr + %idx3 = getelementptr {ubyte} * %ubsptr, long 0, uint 0 store ubyte 4, ubyte* %idx3 ret int 3 |