mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 20:09:46 +00:00
[Test] Range fix in test
test02_neg is not testing what it claims to test because its starting value -1 lies outside of specified range.
This commit is contained in:
parent
50256eeb51
commit
9f2ecc6f20
@ -92,7 +92,7 @@ define i32 @test_02(i32* %p) {
|
||||
; CHECK-NEXT: br label [[LOOP:%.*]]
|
||||
; CHECK: loop:
|
||||
; CHECK-NEXT: [[IV:%.*]] = phi i32 [ [[LEN]], [[ENTRY:%.*]] ], [ [[IV_NEXT:%.*]], [[BACKEDGE:%.*]] ]
|
||||
; CHECK-NEXT: [[IV_NEXT]] = add nsw i32 [[IV]], 1
|
||||
; CHECK-NEXT: [[IV_NEXT]] = add i32 [[IV]], 1
|
||||
; CHECK-NEXT: [[RC:%.*]] = icmp sgt i32 [[IV_NEXT]], [[LEN]]
|
||||
; CHECK-NEXT: br i1 [[RC]], label [[BACKEDGE]], label [[FAIL:%.*]]
|
||||
; CHECK: backedge:
|
||||
@ -132,7 +132,7 @@ define i32 @test_02_neg(i32* %p) {
|
||||
; CHECK-NEXT: br label [[LOOP:%.*]]
|
||||
; CHECK: loop:
|
||||
; CHECK-NEXT: [[IV:%.*]] = phi i32 [ [[LEN]], [[ENTRY:%.*]] ], [ [[IV_NEXT:%.*]], [[BACKEDGE:%.*]] ]
|
||||
; CHECK-NEXT: [[IV_NEXT]] = add nuw nsw i32 [[IV]], 1
|
||||
; CHECK-NEXT: [[IV_NEXT]] = add i32 [[IV]], 1
|
||||
; CHECK-NEXT: [[RC:%.*]] = icmp sgt i32 [[IV_NEXT]], [[LEN]]
|
||||
; CHECK-NEXT: br i1 [[RC]], label [[BACKEDGE]], label [[FAIL:%.*]]
|
||||
; CHECK: backedge:
|
||||
@ -166,4 +166,4 @@ exit:
|
||||
|
||||
|
||||
!0 = !{i32 0, i32 2147483647}
|
||||
!1 = !{i32 -2147483648, i32 -1}
|
||||
!1 = !{i32 -2147483648, i32 0}
|
||||
|
Loading…
Reference in New Issue
Block a user