Files
TheRock/compiler/amd-llvm/llvm/test/Analysis/DependenceAnalysis/banerjee-overflow.ll
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

74 lines
2.3 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py UTC_ARGS: --version 6
; RUN: opt < %s -disable-output "-passes=print<da>" 2>&1 \
; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-ALL
; RUN: opt < %s -disable-output "-passes=print<da>" -da-enable-dependence-test=banerjee-miv 2>&1 \
; RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-BANERJEE-MIV
;
; for (int i = 0; i < 2; i++)
; for (int j = 0; j < 4611686018427387906; j++) {
; A[i - j + 9223372036854775805] = 0;
; A[i + j - 5] = 1;
; }
;
; memory accesses | (i,j) == (0,4611686018427387905)
; ------------------------------------|----------------------------------
; A[i - j + 9223372036854775805] | A[4611686018427387900]
; A[i + j - 5] | A[4611686018427387900]
;
define void @banerjee_delta_ovfl(ptr %A) {
; CHECK-LABEL: 'banerjee_delta_ovfl'
; CHECK-NEXT: Src: store i8 0, ptr %arrayidx1, align 8 --> Dst: store i8 0, ptr %arrayidx1, align 8
; CHECK-NEXT: da analyze - output [* *]!
; CHECK-NEXT: Src: store i8 0, ptr %arrayidx1, align 8 --> Dst: store i8 0, ptr %arrayidx2, align 8
; CHECK-NEXT: da analyze - output [* *|<]!
; CHECK-NEXT: Src: store i8 0, ptr %arrayidx2, align 8 --> Dst: store i8 0, ptr %arrayidx2, align 8
; CHECK-NEXT: da analyze - output [* *]!
;
entry:
br label %for.cond.i
for.cond.i:
%i = phi i64 [ 0, %entry ], [ %inc.i, %for.inc.i ]
%cmp.i = icmp slt i64 %i, 2
br i1 %cmp.i, label %for.body.i, label %for.end.i
for.body.i:
br label %for.cond.j
for.cond.j:
%j = phi i64 [ 0, %for.body.i ], [ %inc.j, %for.inc.j ]
%cmp.j = icmp slt i64 %j, 4611686018427387906
br i1 %cmp.j, label %for.body.j, label %for.end.j
for.body.j:
%sub = sub i64 %i, %j
%add1 = add i64 %sub, 9223372036854775805
%arrayidx1 = getelementptr i8, ptr %A, i64 %add1
store i8 0, ptr %arrayidx1, align 8
%add2 = add i64 %i, %j
%sub2 = sub i64 %add2, 5
%arrayidx2 = getelementptr i8, ptr %A, i64 %sub2
store i8 0, ptr %arrayidx2, align 8
br label %for.inc.j
for.inc.j:
%inc.j = add i64 %j, 1
br label %for.cond.j
for.end.j:
br label %for.inc.i
for.inc.i:
%inc.i = add i64 %i, 1
br label %for.cond.i
for.end.i:
ret void
}
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
; CHECK-ALL: {{.*}}
; CHECK-BANERJEE-MIV: {{.*}}