X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FFeature%2Ftestalloca.ll;h=d6af922db5ac944d6a022b9fae7d47f05aa84a6c;hb=f7b1bdf3b68ef331de936301c3b0ffd360c47a59;hp=9e074ced9083fcf69a2f82d3f445b0c689ccef3d;hpb=740d3cdabd465d2be4fb6855bd05259da1b9b517;p=oota-llvm.git diff --git a/test/Feature/testalloca.ll b/test/Feature/testalloca.ll index 9e074ced908..d6af922db5a 100644 --- a/test/Feature/testalloca.ll +++ b/test/Feature/testalloca.ll @@ -11,11 +11,12 @@ begin %val = load int* %ptr ; yields {int}:val = int %3 %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 + %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 + store ubyte 4, ubyte* %idx - %fptr = getelementptr %struct * %sptr, uint 0, ubyte 1, ubyte 0 ; yields {float*}:fptr + %fptr = getelementptr %struct * %sptr, long 0, ubyte 1, ubyte 0 ; yields {float*}:fptr store float 4.0, float * %fptr ret int 3