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
202 lines
3.1 KiB
Plaintext
202 lines
3.1 KiB
Plaintext
# Test MC/DC bitmap reading and merging.
|
|
|
|
# Merge as profdata.
|
|
RUN: split-file %s %t
|
|
RUN: llvm-profdata merge %t/mcdc-1.proftext %t/mcdc-2.proftext -o %t.profdata
|
|
RUN: llvm-profdata show %t.profdata --text -all-functions | FileCheck %s --check-prefix=MCDC
|
|
# Merge as proftext.
|
|
RUN: llvm-profdata merge %t/mcdc-1.proftext %t/mcdc-2.proftext -o %t.proftext
|
|
RUN: llvm-profdata show %t.proftext --text -all-functions | FileCheck %s --check-prefix=MCDC
|
|
|
|
MCDC: # Num Bitmap Bytes:
|
|
MCDC-NEXT: $1
|
|
MCDC-NEXT: # Bitmap Byte Values:
|
|
MCDC-NEXT: a
|
|
MCDC: # Num Bitmap Bytes:
|
|
MCDC-NEXT: $2
|
|
MCDC-NEXT: # Bitmap Byte Values:
|
|
MCDC-NEXT: 0x29
|
|
MCDC-NEXT: 0x0
|
|
|
|
# Merge as profdata.
|
|
RUN: llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-4.proftext -o %t.profdata
|
|
RUN: llvm-profdata show %t.profdata --text -all-functions | FileCheck %s --check-prefix=MCDC2
|
|
# Merge as proftext.
|
|
RUN: llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-4.proftext -o %t.proftext
|
|
RUN: llvm-profdata show %t.proftext --text -all-functions | FileCheck %s --check-prefix=MCDC2
|
|
|
|
MCDC2: # Num Bitmap Bytes:
|
|
MCDC2-NEXT: $8
|
|
MCDC2-NEXT: # Bitmap Byte Values:
|
|
MCDC2-NEXT: 0x1
|
|
MCDC2-NEXT: 0x2
|
|
MCDC2-NEXT: 0x3
|
|
MCDC2-NEXT: 0xf
|
|
MCDC2-NEXT: 0xf
|
|
MCDC2-NEXT: 0xe
|
|
MCDC2-NEXT: 0xf
|
|
MCDC2-NEXT: 0xa
|
|
|
|
# Incompatible size mismatch.
|
|
RUN: llvm-profdata merge %t/mcdc-2.proftext %t/mcdc-4.proftext -o %t.profdata 2>&1 | FileCheck %s --check-prefix=MCDC3
|
|
# Merge as proftext
|
|
RUN: llvm-profdata merge %t/mcdc-2.proftext %t/mcdc-4.proftext -o %t.proftext 2>&1 | FileCheck %s --check-prefix=MCDC3
|
|
|
|
MCDC3: function bitmap size change detected (bitmap size mismatch)
|
|
|
|
# Invalid number of bitmap bytes.
|
|
RUN: not llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-err0.proftext -o %t.proftext 2>&1 | FileCheck %s --check-prefix=MCDC4
|
|
|
|
MCDC4: malformed instrumentation profile data: number of bitmap bytes is not a valid integer
|
|
|
|
# Invalid bitmap byte.
|
|
RUN: not llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-err1.proftext -o %t.proftext 2>&1 | FileCheck %s --check-prefix=MCDC5
|
|
|
|
MCDC5: malformed instrumentation profile data: bitmap byte is not a valid integer
|
|
|
|
;--- mcdc-1.proftext
|
|
main
|
|
# Func Hash:
|
|
702755447896
|
|
# Num Counters:
|
|
4
|
|
# Counter Values:
|
|
1
|
|
0
|
|
1
|
|
0
|
|
# Num Bitmask Bytes:
|
|
$1
|
|
# Bitmask Byte Values:
|
|
2
|
|
;--- mcdc-2.proftext
|
|
main
|
|
# Func Hash:
|
|
702755447896
|
|
# Num Counters:
|
|
4
|
|
# Counter Values:
|
|
1
|
|
1
|
|
1
|
|
1
|
|
# Num Bitmask Bytes:
|
|
$1
|
|
# Bitmask Byte Values:
|
|
8
|
|
|
|
|
|
test3
|
|
# Func Hash:
|
|
15288018065
|
|
# Num Counters:
|
|
6
|
|
# Counter Values:
|
|
4
|
|
2
|
|
1
|
|
0
|
|
0
|
|
2
|
|
# Num Bitmask Bytes:
|
|
$0x2
|
|
# Bitmask Byte Values:
|
|
0x29
|
|
0x0
|
|
;--- mcdc-3.proftext
|
|
test3
|
|
# Func Hash:
|
|
15288018065
|
|
# Num Counters:
|
|
6
|
|
# Counter Values:
|
|
4
|
|
2
|
|
1
|
|
0
|
|
0
|
|
2
|
|
# Num Bitmask Bytes:
|
|
$8
|
|
# Bitmask Byte Values:
|
|
0x0
|
|
0x2
|
|
0x3
|
|
0xf
|
|
0xf
|
|
0xa
|
|
0xc
|
|
0x2
|
|
;--- mcdc-4.proftext
|
|
test3
|
|
# Func Hash:
|
|
15288018065
|
|
# Num Counters:
|
|
6
|
|
# Counter Values:
|
|
4
|
|
2
|
|
1
|
|
0
|
|
0
|
|
2
|
|
# Num Bitmask Bytes:
|
|
$ 8
|
|
# Bitmask Byte Values:
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
;--- mcdc-err0.proftext
|
|
test3
|
|
# Func Hash:
|
|
15288018065
|
|
# Num Counters:
|
|
6
|
|
# Counter Values:
|
|
4
|
|
2
|
|
1
|
|
0
|
|
0
|
|
2
|
|
# Num Bitmask Bytes:
|
|
$8.9
|
|
# Bitmask Byte Values:
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
;--- mcdc-err1.proftext
|
|
test3
|
|
# Func Hash:
|
|
15288018065
|
|
# Num Counters:
|
|
6
|
|
# Counter Values:
|
|
4
|
|
2
|
|
1
|
|
0
|
|
0
|
|
2
|
|
# Num Bitmask Bytes:
|
|
$8
|
|
# Bitmask Byte Values:
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5.4
|
|
6
|
|
7
|
|
8
|