Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-dwarfdump/X86/coverage.test
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

39 lines
1.5 KiB
Plaintext

RUN: llc %S/Inputs/coverage.ll -o %t.o -filetype=obj
RUN: llc %S/Inputs/coverage-opt.ll -o %t-opt.o -filetype=obj
RUN: llvm-dwarfdump --show-variable-coverage %t.o | FileCheck %s
CHECK: Variable coverage statistics:
CHECK-NEXT: Function InlChain Variable Decl LinesCovered
CHECK-NEXT: f k test.c:20 5
CHECK-NEXT: f l test.c:20 5
CHECK-NEXT: fn1 a test.c:11 14
CHECK-NEXT: fn1 u test.c:4 14
CHECK-NEXT: fn1 v test.c:13 14
CHECK-NEXT: fn1 x test.c:3 14
CHECK-NEXT: fn1 y test.c:3 14
RUN: llvm-dwarfdump --show-variable-coverage --combine-inline-variable-instances %t-opt.o | FileCheck %s --check-prefix=COMBINE
COMBINE: Variable coverage statistics:
COMBINE-NEXT: Function InstanceCount Variable Decl LinesCovered
COMBINE-NEXT: f 1 k test.c:20 5
COMBINE-NEXT: f 1 l test.c:20 5
COMBINE-NEXT: fn1 1 a test.c:11 5
COMBINE-NEXT: fn1 1 u test.c:4 1
COMBINE-NEXT: fn1 1 v test.c:13 0
COMBINE-NEXT: fn1 1 x test.c:3 7
COMBINE-NEXT: fn1 1 y test.c:3 7
RUN: llvm-dwarfdump --show-variable-coverage --coverage-baseline=%t.o %t-opt.o | FileCheck %s --check-prefix=BASELINE
BASELINE: Variable coverage statistics:
BASELINE-NEXT: Function InlChain Variable Decl LinesCovered Baseline CoveredRatio LinesPresent LinesPresentRatio
BASELINE-NEXT: f k test.c:20 5 5 1 5 1
BASELINE-NEXT: f l test.c:20 5 5 1 5 1
BASELINE-NEXT: fn1 a test.c:11 5 14 0.357 7 0.5
BASELINE-NEXT: fn1 u test.c:4 1 14 0.0714 7 0.5
BASELINE-NEXT: fn1 v test.c:13 0 14 0 7 0.5
BASELINE-NEXT: fn1 x test.c:3 7 14 0.5 7 0.5
BASELINE-NEXT: fn1 y test.c:3 7 14 0.5 7 0.5