brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.1 KiB · a7b1b5d Raw
202 lines · plain
1# Test MC/DC bitmap reading and merging.2 3# Merge as profdata.4RUN: split-file %s %t5RUN: llvm-profdata merge %t/mcdc-1.proftext %t/mcdc-2.proftext -o %t.profdata6RUN: llvm-profdata show %t.profdata --text -all-functions | FileCheck %s --check-prefix=MCDC7# Merge as proftext.8RUN: llvm-profdata merge %t/mcdc-1.proftext %t/mcdc-2.proftext -o %t.proftext9RUN: llvm-profdata show %t.proftext --text -all-functions | FileCheck %s --check-prefix=MCDC10 11MCDC: # Num Bitmap Bytes:12MCDC-NEXT: $113MCDC-NEXT: # Bitmap Byte Values:14MCDC-NEXT: a15MCDC: # Num Bitmap Bytes:16MCDC-NEXT: $217MCDC-NEXT: # Bitmap Byte Values:18MCDC-NEXT: 0x2919MCDC-NEXT: 0x020 21# Merge as profdata.22RUN: llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-4.proftext -o %t.profdata23RUN: llvm-profdata show %t.profdata --text -all-functions | FileCheck %s --check-prefix=MCDC224# Merge as proftext.25RUN: llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-4.proftext -o %t.proftext26RUN: llvm-profdata show %t.proftext --text -all-functions | FileCheck %s --check-prefix=MCDC227 28MCDC2: # Num Bitmap Bytes:29MCDC2-NEXT: $830MCDC2-NEXT: # Bitmap Byte Values:31MCDC2-NEXT: 0x132MCDC2-NEXT: 0x233MCDC2-NEXT: 0x334MCDC2-NEXT: 0xf35MCDC2-NEXT: 0xf36MCDC2-NEXT: 0xe37MCDC2-NEXT: 0xf38MCDC2-NEXT: 0xa39 40# Incompatible size mismatch.41RUN: llvm-profdata merge %t/mcdc-2.proftext %t/mcdc-4.proftext -o %t.profdata 2>&1 | FileCheck %s --check-prefix=MCDC342# Merge as proftext43RUN: llvm-profdata merge %t/mcdc-2.proftext %t/mcdc-4.proftext -o %t.proftext 2>&1 | FileCheck %s --check-prefix=MCDC344 45MCDC3: function bitmap size change detected (bitmap size mismatch)46 47# Invalid number of bitmap bytes.48RUN: not llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-err0.proftext -o %t.proftext 2>&1 | FileCheck %s --check-prefix=MCDC449 50MCDC4: malformed instrumentation profile data: number of bitmap bytes is not a valid integer51 52# Invalid bitmap byte.53RUN: not llvm-profdata merge %t/mcdc-3.proftext %t/mcdc-err1.proftext -o %t.proftext 2>&1 | FileCheck %s --check-prefix=MCDC554 55MCDC5: malformed instrumentation profile data: bitmap byte is not a valid integer56 57;--- mcdc-1.proftext58main59# Func Hash:6070275544789661# Num Counters:62463# Counter Values:64165066167068# Num Bitmask Bytes:69$170# Bitmask Byte Values:71272;--- mcdc-2.proftext73main74# Func Hash:7570275544789676# Num Counters:77478# Counter Values:79180181182183# Num Bitmask Bytes:84$185# Bitmask Byte Values:86887 88 89test390# Func Hash:911528801806592# Num Counters:93694# Counter Values:9549629719809901002101# Num Bitmask Bytes:102$0x2103# Bitmask Byte Values:1040x291050x0106;--- mcdc-3.proftext107test3108# Func Hash:10915288018065110# Num Counters:1116112# Counter Values:113411421151116011701182119# Num Bitmask Bytes:120$8121# Bitmask Byte Values:1220x01230x21240x31250xf1260xf1270xa1280xc1290x2130;--- mcdc-4.proftext131test3132# Func Hash:13315288018065134# Num Counters:1356136# Counter Values:137413821391140014101422143# Num Bitmask Bytes:144$       8145# Bitmask Byte Values:14611472148314941505151615271538154;--- mcdc-err0.proftext155test3156# Func Hash:15715288018065158# Num Counters:1596160# Counter Values:161416221631164016501662167# Num Bitmask Bytes:168$8.9169# Bitmask Byte Values:17011712172317341745175617671778178;--- mcdc-err1.proftext179test3180# Func Hash:18115288018065182# Num Counters:1836184# Counter Values:185418621871188018901902191# Num Bitmask Bytes:192$8193# Bitmask Byte Values:19411952196319741985.4199620072018202