[llvm-branch-commits] [llvm] [DA] Update tests for the Weak Zero SIV tests (NFC) (PR #185578)
https://github.com/kasuga-fj updated
https://github.com/llvm/llvm-project/pull/185578
>From 914052835bff6eca33c39c148c5f5a46bd0de638 Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga
Date: Mon, 9 Mar 2026 09:04:26 +
Subject: [PATCH] [DA] Update tests for the Weak Zero SIV tests (NFC)
---
.../weak-zero-siv-addrec-wrap.ll | 112 ++
1 file changed, 112 insertions(+)
create mode 100644
llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
diff --git a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
new file mode 100644
index 0..09e910542d68a
--- /dev/null
+++ b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
@@ -0,0 +1,112 @@
+; NOTE: Assertions have been autogenerated by
utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -disable-output "-passes=print" 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL
+; RUN: opt < %s -disable-output "-passes=print"
-da-enable-dependence-test=weak-zero-siv 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-WEAK-ZERO-SIV
+;
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0, ptr
%gep.0, align 1
+; CHECK-NEXT:da analyze - output [S]!
+; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - none!
+; CHECK-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - output [*]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %gep.0 = getelementptr i8, ptr %A, i64 -4
+ store i8 0, ptr %gep.0
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.1 = getelementptr i8, ptr %A, i64 %offset
+ store i8 1, ptr %gep.1
+ br label %loop.latch
+
+loop.latch:
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0, ptr
%gep.0, align 1
+; CHECK-NEXT:da analyze - output [*]!
+; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - none!
+; CHECK-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - output [S]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.0 = getelementptr i8, ptr %A, i64 %offset
+ store i8 0, ptr %gep.0
+ br label %loop.latch
+
+loop.latch:
+ %gep.1 = getelementptr i8, ptr %A, i64 -4
+ store i8 1, ptr %gep.1
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add
tests below this line:
+; CHECK-ALL: {{.*}}
+; CHECK-WEAK-ZERO-SIV: {{.*}}
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [DA] Update tests for the Weak Zero SIV tests (NFC) (PR #185578)
https://github.com/kasuga-fj updated
https://github.com/llvm/llvm-project/pull/185578
>From ab9acb87d15cb69123026f8ca11c4fac2df00809 Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga
Date: Mon, 9 Mar 2026 09:04:26 +
Subject: [PATCH] [DA] Update tests for the Weak Zero SIV tests (NFC)
---
.../weak-zero-siv-addrec-wrap.ll | 112 ++
1 file changed, 112 insertions(+)
create mode 100644
llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
diff --git a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
new file mode 100644
index 0..09e910542d68a
--- /dev/null
+++ b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
@@ -0,0 +1,112 @@
+; NOTE: Assertions have been autogenerated by
utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -disable-output "-passes=print" 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL
+; RUN: opt < %s -disable-output "-passes=print"
-da-enable-dependence-test=weak-zero-siv 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-WEAK-ZERO-SIV
+;
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0, ptr
%gep.0, align 1
+; CHECK-NEXT:da analyze - output [S]!
+; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - none!
+; CHECK-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - output [*]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %gep.0 = getelementptr i8, ptr %A, i64 -4
+ store i8 0, ptr %gep.0
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.1 = getelementptr i8, ptr %A, i64 %offset
+ store i8 1, ptr %gep.1
+ br label %loop.latch
+
+loop.latch:
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0, ptr
%gep.0, align 1
+; CHECK-NEXT:da analyze - output [*]!
+; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - none!
+; CHECK-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - output [S]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.0 = getelementptr i8, ptr %A, i64 %offset
+ store i8 0, ptr %gep.0
+ br label %loop.latch
+
+loop.latch:
+ %gep.1 = getelementptr i8, ptr %A, i64 -4
+ store i8 1, ptr %gep.1
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add
tests below this line:
+; CHECK-ALL: {{.*}}
+; CHECK-WEAK-ZERO-SIV: {{.*}}
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [DA] Update tests for the Weak Zero SIV tests (NFC) (PR #185578)
https://github.com/kasuga-fj updated
https://github.com/llvm/llvm-project/pull/185578
>From ab9acb87d15cb69123026f8ca11c4fac2df00809 Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga
Date: Mon, 9 Mar 2026 09:04:26 +
Subject: [PATCH] [DA] Update tests for the Weak Zero SIV tests (NFC)
---
.../weak-zero-siv-addrec-wrap.ll | 112 ++
1 file changed, 112 insertions(+)
create mode 100644
llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
diff --git a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
new file mode 100644
index 0..09e910542d68a
--- /dev/null
+++ b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
@@ -0,0 +1,112 @@
+; NOTE: Assertions have been autogenerated by
utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -disable-output "-passes=print" 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL
+; RUN: opt < %s -disable-output "-passes=print"
-da-enable-dependence-test=weak-zero-siv 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-WEAK-ZERO-SIV
+;
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0, ptr
%gep.0, align 1
+; CHECK-NEXT:da analyze - output [S]!
+; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - none!
+; CHECK-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - output [*]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %gep.0 = getelementptr i8, ptr %A, i64 -4
+ store i8 0, ptr %gep.0
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.1 = getelementptr i8, ptr %A, i64 %offset
+ store i8 1, ptr %gep.1
+ br label %loop.latch
+
+loop.latch:
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0, ptr
%gep.0, align 1
+; CHECK-NEXT:da analyze - output [*]!
+; CHECK-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - none!
+; CHECK-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1, ptr
%gep.1, align 1
+; CHECK-NEXT:da analyze - output [S]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.0 = getelementptr i8, ptr %A, i64 %offset
+ store i8 0, ptr %gep.0
+ br label %loop.latch
+
+loop.latch:
+ %gep.1 = getelementptr i8, ptr %A, i64 -4
+ store i8 1, ptr %gep.1
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add
tests below this line:
+; CHECK-ALL: {{.*}}
+; CHECK-WEAK-ZERO-SIV: {{.*}}
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [DA] Update tests for the Weak Zero SIV tests (NFC) (PR #185578)
https://github.com/kasuga-fj updated
https://github.com/llvm/llvm-project/pull/185578
>From 3b6243e47c38bc021a8b4dfe2c26b076213a4b7d Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga
Date: Mon, 9 Mar 2026 09:04:26 +
Subject: [PATCH] [DA] Update tests for the Weak Zero SIV tests (NFC)
---
.../weak-zero-siv-addrec-wrap.ll | 127 ++
1 file changed, 127 insertions(+)
create mode 100644
llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
diff --git a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
new file mode 100644
index 0..fe571b2b7f334
--- /dev/null
+++ b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
@@ -0,0 +1,127 @@
+; NOTE: Assertions have been autogenerated by
utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -disable-output "-passes=print" 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL
+; RUN: opt < %s -disable-output "-passes=print"
-da-enable-dependence-test=weak-zero-siv 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-WEAK-ZERO-SIV
+;
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0,
ptr %gep.0, align 1
+; CHECK-ALL-NEXT:da analyze - output [S]!
+; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+;
+; CHECK-WEAK-ZERO-SIV-LABEL: 'weak_zero_src_siv_addrec_wrap'
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 0, ptr %gep.0, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [S]!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - none!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [*]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %gep.0 = getelementptr i8, ptr %A, i64 -4
+ store i8 0, ptr %gep.0
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.1 = getelementptr i8, ptr %A, i64 %offset
+ store i8 1, ptr %gep.1
+ br label %loop.latch
+
+loop.latch:
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0,
ptr %gep.0, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - output [S]!
+;
+; CHECK-WEAK-ZERO-SIV-LABEL: 'weak_zero_dst_siv_addrec_wrap'
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 0, ptr %gep.0, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [*]!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - none!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [S]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.0 = getelementptr i8, ptr %A, i64 %offset
+ store i8 0, ptr %gep.0
+ br label %loop.latch
+
+loop.latch:
+ %gep.1 = getelementptr i8, ptr %A, i64 -4
+ store i8 1, ptr %gep.1
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add
tests below this line:
+; CHECK: {{.*}}
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [DA] Update tests for the Weak Zero SIV tests (NFC) (PR #185578)
https://github.com/kasuga-fj updated
https://github.com/llvm/llvm-project/pull/185578
>From 3b6243e47c38bc021a8b4dfe2c26b076213a4b7d Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga
Date: Mon, 9 Mar 2026 09:04:26 +
Subject: [PATCH] [DA] Update tests for the Weak Zero SIV tests (NFC)
---
.../weak-zero-siv-addrec-wrap.ll | 127 ++
1 file changed, 127 insertions(+)
create mode 100644
llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
diff --git a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
new file mode 100644
index 0..fe571b2b7f334
--- /dev/null
+++ b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
@@ -0,0 +1,127 @@
+; NOTE: Assertions have been autogenerated by
utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -disable-output "-passes=print" 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL
+; RUN: opt < %s -disable-output "-passes=print"
-da-enable-dependence-test=weak-zero-siv 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-WEAK-ZERO-SIV
+;
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0,
ptr %gep.0, align 1
+; CHECK-ALL-NEXT:da analyze - output [S]!
+; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+;
+; CHECK-WEAK-ZERO-SIV-LABEL: 'weak_zero_src_siv_addrec_wrap'
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 0, ptr %gep.0, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [S]!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - none!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [*]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %gep.0 = getelementptr i8, ptr %A, i64 -4
+ store i8 0, ptr %gep.0
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.1 = getelementptr i8, ptr %A, i64 %offset
+ store i8 1, ptr %gep.1
+ br label %loop.latch
+
+loop.latch:
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0,
ptr %gep.0, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - output [S]!
+;
+; CHECK-WEAK-ZERO-SIV-LABEL: 'weak_zero_dst_siv_addrec_wrap'
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 0, ptr %gep.0, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [*]!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - none!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [S]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.0 = getelementptr i8, ptr %A, i64 %offset
+ store i8 0, ptr %gep.0
+ br label %loop.latch
+
+loop.latch:
+ %gep.1 = getelementptr i8, ptr %A, i64 -4
+ store i8 1, ptr %gep.1
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add
tests below this line:
+; CHECK: {{.*}}
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [DA] Update tests for the Weak Zero SIV tests (NFC) (PR #185578)
kasuga-fj wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.com/github/pr/llvm/llvm-project/185578?utm_source=stack-comment-downstack-mergeability-warning"; > >on Graphite. > https://graphite.dev/docs/merge-pull-requests";>Learn more * **#185580** https://app.graphite.com/github/pr/llvm/llvm-project/185580?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#185579** https://app.graphite.com/github/pr/llvm/llvm-project/185579?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#185578** https://app.graphite.com/github/pr/llvm/llvm-project/185578?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.com/github/pr/llvm/llvm-project/185578?utm_source=stack-comment-view-in-graphite"; target="_blank">(View in Graphite) * **#185577** https://app.graphite.com/github/pr/llvm/llvm-project/185577?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#185576** https://app.graphite.com/github/pr/llvm/llvm-project/185576?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#183738** https://app.graphite.com/github/pr/llvm/llvm-project/183738?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#183737** https://app.graphite.com/github/pr/llvm/llvm-project/183737?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#183736** https://app.graphite.com/github/pr/llvm/llvm-project/183736?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * **#183735** https://app.graphite.com/github/pr/llvm/llvm-project/183735?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> * `main` This stack of pull requests is managed by https://graphite.dev?utm-source=stack-comment";>Graphite. Learn more about https://stacking.dev/?utm_source=stack-comment";>stacking. https://github.com/llvm/llvm-project/pull/185578 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
[llvm-branch-commits] [llvm] [DA] Update tests for the Weak Zero SIV tests (NFC) (PR #185578)
https://github.com/kasuga-fj created
https://github.com/llvm/llvm-project/pull/185578
None
>From b2ed618c7c8b5fa3356a55f6595446f4946e63aa Mon Sep 17 00:00:00 2001
From: Ryotaro Kasuga
Date: Mon, 9 Mar 2026 09:04:26 +
Subject: [PATCH] [DA] Update tests for the Weak Zero SIV tests (NFC)
---
.../weak-zero-siv-addrec-wrap.ll | 127 ++
1 file changed, 127 insertions(+)
create mode 100644
llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
diff --git a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
new file mode 100644
index 0..fe571b2b7f334
--- /dev/null
+++ b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-addrec-wrap.ll
@@ -0,0 +1,127 @@
+; NOTE: Assertions have been autogenerated by
utils/update_analyze_test_checks.py UTC_ARGS: --version 6
+; RUN: opt < %s -disable-output "-passes=print" 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL
+; RUN: opt < %s -disable-output "-passes=print"
-da-enable-dependence-test=weak-zero-siv 2>&1 \
+; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-WEAK-ZERO-SIV
+;
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0,
ptr %gep.0, align 1
+; CHECK-ALL-NEXT:da analyze - output [S]!
+; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+;
+; CHECK-WEAK-ZERO-SIV-LABEL: 'weak_zero_src_siv_addrec_wrap'
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 0, ptr %gep.0, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [S]!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - none!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [*]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %gep.0 = getelementptr i8, ptr %A, i64 -4
+ store i8 0, ptr %gep.0
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.1 = getelementptr i8, ptr %A, i64 %offset
+ store i8 1, ptr %gep.1
+ br label %loop.latch
+
+loop.latch:
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+
+; coeff = (1 << 62) - 1;
+; // Use `i*i Dst: store i8 0,
ptr %gep.0, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - none!
+; CHECK-ALL-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst: store i8 1,
ptr %gep.1, align 1
+; CHECK-ALL-NEXT:da analyze - output [S]!
+;
+; CHECK-WEAK-ZERO-SIV-LABEL: 'weak_zero_dst_siv_addrec_wrap'
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 0, ptr %gep.0, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [*]!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 0, ptr %gep.0, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - none!
+; CHECK-WEAK-ZERO-SIV-NEXT: Src: store i8 1, ptr %gep.1, align 1 --> Dst:
store i8 1, ptr %gep.1, align 1
+; CHECK-WEAK-ZERO-SIV-NEXT:da analyze - output [S]!
+;
+entry:
+ br label %loop.header
+
+loop.header:
+ %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
+ %cond = icmp eq i64 %i, 4
+ br i1 %cond, label %if.then, label %loop.latch
+
+if.then:
+ %offset = mul i64 4611686018427387903, %i
+ %gep.0 = getelementptr i8, ptr %A, i64 %offset
+ store i8 0, ptr %gep.0
+ br label %loop.latch
+
+loop.latch:
+ %gep.1 = getelementptr i8, ptr %A, i64 -4
+ store i8 1, ptr %gep.1
+ %i.inc = add nuw nsw i64 %i, 1
+ %sq = mul nuw nsw i64 %i.inc, %i.inc
+ %ec = icmp uge i64 %sq, %n
+ br i1 %ec, label %exit, label %loop.header
+
+exit:
+ ret void
+}
+;; NOTE: These prefixes are unused and the list is autogenerated. Do not add
tests below this line:
+; CHECK: {{.*}}
___
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
