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/Feature/testalloca.ll | |
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/Feature/testalloca.ll')
-rw-r--r-- | llvm/test/Feature/testalloca.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Feature/testalloca.ll b/llvm/test/Feature/testalloca.ll index ac08be60e22..5a13bada728 100644 --- a/llvm/test/Feature/testalloca.ll +++ b/llvm/test/Feature/testalloca.ll @@ -15,12 +15,12 @@ begin %val = load int* %ptr ; yields {int}:val = int %3 %sptr = alloca %struct ; yields {%struct*}:sptr - %nsptr = getelementptr %struct * %sptr, long 0, ubyte 1 ; yields {inners*}:nsptr - %ubsptr = getelementptr %inners * %nsptr, long 0, ubyte 1 ; yields {{ubyte}*}:ubsptr - %idx = getelementptr {ubyte} * %ubsptr, long 0, ubyte 0 + %nsptr = getelementptr %struct * %sptr, long 0, uint 1 ; yields {inners*}:nsptr + %ubsptr = getelementptr %inners * %nsptr, long 0, uint 1 ; yields {{ubyte}*}:ubsptr + %idx = getelementptr {ubyte} * %ubsptr, long 0, uint 0 store ubyte 4, ubyte* %idx - %fptr = getelementptr %struct * %sptr, long 0, ubyte 1, ubyte 0 ; yields {float*}:fptr + %fptr = getelementptr %struct * %sptr, long 0, uint 1, uint 0 ; yields {float*}:fptr store float 4.0, float * %fptr ret int 3 |