diff options
Diffstat (limited to 'test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll')
-rw-r--r-- | test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll b/test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll index 8247886..a0b1e84 100644 --- a/test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll +++ b/test/Transforms/IndVarSimplify/2011-11-01-lftrptr.ll @@ -25,8 +25,8 @@ preheader: loop: %p.01.us.us = phi i8* [ null, %preheader ], [ %gep, %loop ] %s = phi i8 [0, %preheader], [%snext, %loop] - %gep = getelementptr inbounds i8* %p.01.us.us, i64 1 - %snext = load i8* %gep + %gep = getelementptr inbounds i8, i8* %p.01.us.us, i64 1 + %snext = load i8, i8* %gep %cmp = icmp ult i8* %gep, %end br i1 %cmp, label %loop, label %exit @@ -50,8 +50,8 @@ preheader: loop: %p.01.us.us = phi i8* [ %buf, %preheader ], [ %gep, %loop ] %s = phi i8 [0, %preheader], [%snext, %loop] - %gep = getelementptr inbounds i8* %p.01.us.us, i64 1 - %snext = load i8* %gep + %gep = getelementptr inbounds i8, i8* %p.01.us.us, i64 1 + %snext = load i8, i8* %gep %cmp = icmp ult i8* %gep, %end br i1 %cmp, label %loop, label %exit @@ -79,8 +79,8 @@ loop: %p.01.us.us = phi i8* [ null, %preheader ], [ %gep, %loop ] %iv = phi i32 [ 0, %preheader ], [ %ivnext, %loop ] %s = phi i8 [0, %preheader], [%snext, %loop] - %gep = getelementptr inbounds i8* %p.01.us.us, i64 1 - %snext = load i8* %gep + %gep = getelementptr inbounds i8, i8* %p.01.us.us, i64 1 + %snext = load i8, i8* %gep %ivnext = add i32 %iv, 1 %cmp = icmp ult i32 %ivnext, %cnt br i1 %cmp, label %loop, label %exit @@ -109,8 +109,8 @@ loop: %p.01.us.us = phi i8* [ %buf, %preheader ], [ %gep, %loop ] %iv = phi i32 [ %bi, %preheader ], [ %ivnext, %loop ] %s = phi i8 [0, %preheader], [%snext, %loop] - %gep = getelementptr inbounds i8* %p.01.us.us, i64 1 - %snext = load i8* %gep + %gep = getelementptr inbounds i8, i8* %p.01.us.us, i64 1 + %snext = load i8, i8* %gep %ivnext = add i32 %iv, 1 %cmp = icmp ult i32 %ivnext, %cnt br i1 %cmp, label %loop, label %exit @@ -122,7 +122,7 @@ exit: ; IV and BECount have two different pointer types here. define void @testnullptr([512 x i8]* %base) nounwind { entry: - %add.ptr1603 = getelementptr [512 x i8]* %base, i64 0, i64 512 + %add.ptr1603 = getelementptr [512 x i8], [512 x i8]* %base, i64 0, i64 512 br label %preheader preheader: @@ -131,7 +131,7 @@ preheader: for.body: %r.17193 = phi i8* [ %incdec.ptr1608, %for.body ], [ null, %preheader ] - %incdec.ptr1608 = getelementptr i8* %r.17193, i64 1 + %incdec.ptr1608 = getelementptr i8, i8* %r.17193, i64 1 %cmp1604 = icmp ult i8* %incdec.ptr1608, %add.ptr1603 br i1 %cmp1604, label %for.body, label %for.end1609 |