brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.2 KiB · 111fd41 Raw
113 lines · plain
1# Compatibility tests for older profile format versions. These ensure2# that we don't break compatibility with an older profile version3# without noticing it.4 5# The input file at %S/Inputs/compat.profdata.v1 was generated with6# llvm-profdata merge from r214548.7 8# RUN: llvm-profdata show %S/Inputs/compat.profdata.v1 --function function_count_only --counts | FileCheck %s -check-prefix=FUNC_COUNT_ONLY9function_count_only100111129753113# FUNC_COUNT_ONLY:      Hash: 0x{{0+$}}14# FUNC_COUNT_ONLY-NEXT: Counters: 115# FUNC_COUNT_ONLY-NEXT: Function count: 9753116# FUNC_COUNT_ONLY-NEXT: Block counts: []17 18# RUN: llvm-profdata show %S/Inputs/compat.profdata.v1 --function "name with spaces" --counts | FileCheck %s -check-prefix=SPACES19name with spaces20102421222023024# SPACES:      Hash: 0x{{0+}}40025# SPACES-NEXT: Counters: 226# SPACES-NEXT: Function count: 027# SPACES-NEXT: Block counts: [0]28 29# RUN: llvm-profdata show %S/Inputs/compat.profdata.v1 --function large_numbers --counts | FileCheck %s -check-prefix=LARGENUM30large_numbers314611686018427387903326332305843009213693952341152921504606846976355764607523034234883628823037615171174437144115188075855872387205759403792793639# LARGENUM:      Hash: 0x3fffffffffffffff40# LARGENUM-NEXT: Counters: 641# LARGENUM-NEXT: Function count: 230584300921369395242# LARGENUM-NEXT: Block counts: [1152921504606846976, 576460752303423488, 288230376151711744, 144115188075855872, 72057594037927936]43 44# RUN: llvm-profdata show %S/Inputs/compat.profdata.v1 | FileCheck %s -check-prefix=SUMMARY45# SUMMARY: Total functions: 346# SUMMARY: Maximum function count: 230584300921369395247# SUMMARY: Maximum internal block count: 115292150460684697648 49# RUN: llvm-profdata show %S/Inputs/compat.profdata.v2 -all-functions --counts | FileCheck %s -check-prefix=FORMATV250 51# FORMATV2: Counters:52# FORMATV2-NEXT:   foo:53# FORMATV2-NEXT:     Hash: 0x000000000000000a54# FORMATV2-NEXT:     Counters: 255# FORMATV2-NEXT:     Function count: 49950056# FORMATV2-NEXT:     Block counts: [179900]57# FORMATV2-NEXT:   main:58# FORMATV2-NEXT:     Hash: 0x000000000000410a59# FORMATV2-NEXT:     Counters: 460# FORMATV2-NEXT:     Function count: 161# FORMATV2-NEXT:     Block counts: [1000, 1000000, 499500]62# FORMATV2-NEXT: Instrumentation level: Front-end63# FORMATV2-NEXT: Functions shown: 264# FORMATV2-NEXT: Total functions: 265# FORMATV2-NEXT: Maximum function count: 49950066# FORMATV2-NEXT: Maximum internal block count: 100000067#68# RUN: llvm-profdata show %S/Inputs/compat.profdata.v4 -all-functions --counts | FileCheck %s -check-prefix=FORMATV469 70# FORMATV4: Counters:71# FORMATV4:   name with spaces:72# FORMATV4:     Hash: 0x000000000000040073# FORMATV4:     Counters: 274# FORMATV4:     Function count: 075# FORMATV4:     Block counts: [0]76# FORMATV4:   function_count_only:77# FORMATV4:     Hash: 0x000000000000000078# FORMATV4:     Counters: 179# FORMATV4:     Function count: 9753180# FORMATV4:     Block counts: []81# FORMATV4:   large_numbers:82# FORMATV4:     Hash: 0x3fffffffffffffff83# FORMATV4:     Counters: 684# FORMATV4:     Function count: 230584300921369395285# FORMATV4:     Block counts: [1152921504606846976, 576460752303423488, 288230376151711744, 144115188075855872, 72057594037927936]86# FORMATV4: Functions shown: 387# FORMATV4: Total functions: 388# FORMATV4: Maximum function count: 230584300921369395289# FORMATV4: Maximum internal block count: 115292150460684697690 91# RUN: llvm-profdata show %S/Inputs/compat.profdata.v10 -all-functions --counts | FileCheck %s -check-prefix=FORMATV1092 93# FORMATV10: Counters:94# FORMATV10:   large_numbers:95# FORMATV10:     Hash: 0x3fffffffffffffff96# FORMATV10:     Counters: 697# FORMATV10:     Function count: 230584300921369395298# FORMATV10:     Block counts: [1152921504606846976, 576460752303423488, 288230376151711744, 144115188075855872, 72057594037927936]99# FORMATV10:   name with spaces:100# FORMATV10:     Hash: 0x0000000000000400101# FORMATV10:     Counters: 2102# FORMATV10:     Function count: 0103# FORMATV10:     Block counts: [0]104# FORMATV10:   function_count_only:105# FORMATV10:     Hash: 0x0000000000000000106# FORMATV10:     Counters: 1107# FORMATV10:     Function count: 97531108# FORMATV10:     Block counts: []109# FORMATV10: Functions shown: 3110# FORMATV10: Total functions: 3111# FORMATV10: Maximum function count: 2305843009213693952112# FORMATV10: Maximum internal block count: 1152921504606846976113