Skip to content

Commit a3ee34f

Browse files
committed
[Test] Add ranges for some expressions in some SCEV tests (NFC)
1 parent 1e155ce commit a3ee34f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

llvm/test/Analysis/ScalarEvolution/different-loops-recs.ll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,11 @@ define void @test_04() {
271271
; CHECK: %tmp4 = add nuw nsw i64 %tmp, 1
272272
; CHECK-NEXT: --> {3,+,1}<nuw><%loop1>
273273
; CHECK: %tmp7 = phi i64 [ %tmp15, %loop2 ], [ 2, %loop1 ]
274-
; CHECK-NEXT: --> {2,+,1}<nuw><nsw><%loop2>
274+
; CHECK-NEXT: --> {2,+,1}<nuw><nsw><%loop2> U: [2,9223372036854775807) S: [2,9223372036854775807)
275+
; CHECK: %tmp9 = sext i8 %tmp8 to i64
276+
; CHECK-NEXT: --> (sext i8 %tmp8 to i64) U: [-128,128) S: [-128,128)
275277
; CHECK: %tmp10 = sub i64 %tmp9, %tmp7
276-
; CHECK-NEXT: --> ((sext i8 %tmp8 to i64) + {-2,+,-1}<nw><%loop2>)
278+
; CHECK-NEXT: --> ((sext i8 %tmp8 to i64) + {-2,+,-1}<nw><%loop2>) U: [9223372036854775682,126) S: [9223372036854775682,126)
277279
; CHECK: %tmp11 = add i64 %tmp10, undef
278280
; CHECK-NEXT: --> ((sext i8 %tmp8 to i64) + {(-2 + undef),+,-1}<nw><%loop2>)
279281
; CHECK: %tmp13 = trunc i64 %tmp11 to i32

llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; RUN: opt < %s -disable-output "-passes=print<scalar-evolution>" 2>&1 | FileCheck %s
22

33
; CHECK: %tmp3 = sext i8 %tmp2 to i32
4-
; CHECK: --> (sext i8 {0,+,1}<%bb1> to i32){{ U: [^ ]+ S: [^ ]+}}{{ *}}Exits: -1
4+
; CHECK: --> (sext i8 {0,+,1}<%bb1> to i32) U: [-128,128) S: [-128,128) Exits: -1
55
; CHECK: %tmp4 = mul i32 %tmp3, %i.02
6-
; CHECK: --> ((sext i8 {0,+,1}<%bb1> to i32) * {0,+,1}<nuw><nsw><%bb>){{ U: [^ ]+ S: [^ ]+}}{{ *}}Exits: {0,+,-1}<nw><%bb>
6+
; CHECK: --> ((sext i8 {0,+,1}<%bb1> to i32) * {0,+,1}<nuw><nsw><%bb>) U: [-3968,3938) S: [-3968,3938) Exits: {0,+,-1}<nw><%bb>
77

88
; These sexts are not foldable.
99

0 commit comments

Comments
 (0)