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
41 lines
1.3 KiB
LLVM
41 lines
1.3 KiB
LLVM
; Test -sanitizer-coverage-trace-geps=1
|
|
; RUN: opt < %s -passes='module(sancov-module)' -sanitizer-coverage-level=1 -sanitizer-coverage-trace-geps=1 -S | FileCheck %s
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
define void @gep_1(ptr captures(none) %a, i32 %i) {
|
|
entry:
|
|
%idxprom = sext i32 %i to i64
|
|
%arrayidx = getelementptr inbounds i32, ptr %a, i64 %idxprom
|
|
store i32 0, ptr %arrayidx, align 4
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: define void @gep_1(ptr captures(none) %a, i32 %i)
|
|
; CHECK: call void @__sanitizer_cov_trace_gep(i64 %idxprom)
|
|
; CHECK: ret void
|
|
|
|
|
|
define void @gep_2(ptr captures(none) %a, i32 %i, i32 %j) {
|
|
entry:
|
|
%idxprom = sext i32 %j to i64
|
|
%idxprom1 = sext i32 %i to i64
|
|
%arrayidx2 = getelementptr inbounds [1000 x i32], ptr %a, i64 %idxprom1, i64 %idxprom
|
|
store i32 0, ptr %arrayidx2, align 4
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: define void @gep_2(ptr captures(none) %a, i32 %i, i32 %j)
|
|
; CHECK: call void @__sanitizer_cov_trace_gep(i64 %idxprom1)
|
|
; CHECK: call void @__sanitizer_cov_trace_gep(i64 %idxprom)
|
|
; CHECK: ret void
|
|
|
|
; Just make sure we don't insturment this one and don't crash
|
|
define void @gep_3(<2 x ptr> %a, i32 %i, i32 %j) {
|
|
entry:
|
|
%0 = getelementptr i8, <2 x ptr> %a, <2 x i64> <i64 8, i64 8>
|
|
ret void
|
|
}
|
|
|