summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/testmemory.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-23 15:14:52 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-23 15:14:52 +0000
commit0e43e15fc99897fe844cc22c4cf88cb2021b251a (patch)
tree0ff1240dd93a0af820fca1737b50f3efed479e47 /llvm/test/Feature/testmemory.ll
parent09b7e4d3ab012ad8272ba4a926acbcee064757a2 (diff)
downloadbcm5719-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/Feature/testmemory.ll')
-rw-r--r--llvm/test/Feature/testmemory.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/Feature/testmemory.ll b/llvm/test/Feature/testmemory.ll
index cc6fe710195..573ee982d71 100644
--- a/llvm/test/Feature/testmemory.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud