| 1 |
# RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-clusters-output-file=- -analysis-clustering-epsilon=0.1 -analysis-inconsistency-epsilon=0.1 -analysis-numpoints=1 -analysis-clustering=naive | FileCheck -check-prefixes=CHECK-CLUSTERS %s |
| 2 |
|
| 3 |
# Naive clusterization mainly groups by instruction opcode, |
| 4 |
# but it should also partition the benchmarks of the same opcode |
| 5 |
# by the sched class. For example, a regular `xor`, and same-operand `xor` |
| 6 |
# may have different characteristics, and it will be confusing/misleading |
| 7 |
# to group them. |
| 8 |
|
| 9 |
# CHECK-CLUSTERS: {{^}}cluster_id,opcode_name,config,sched_class,latency{{$}} |
| 10 |
# CHECK-CLUSTERS-NEXT: {{^}}0, |
| 11 |
# CHECK-CLUSTERS-SAME: ,1.00{{$}} |
| 12 |
# CHECK-CLUSTERS: {{^}}1, |
| 13 |
# CHECK-CLUSTERS-SAME: ,0.20{{$}} |
| 14 |
|
| 15 |
--- |
| 16 |
mode: latency |
| 17 |
key: |
| 18 |
instructions: |
| 19 |
- 'XOR32rr ECX ECX EAX' |
| 20 |
config: '' |
| 21 |
register_initial_values: |
| 22 |
- 'ECX=0x0' |
| 23 |
- 'EAX=0x0' |
| 24 |
cpu_name: znver3 |
| 25 |
llvm_triple: x86_64-unknown-linux-gnu |
| 26 |
num_repetitions: 1000000 |
| 27 |
measurements: |
| 28 |
- { key: latency, value: 1.00017, per_snippet_value: 1.00017 } |
| 29 |
error: '' |
| 30 |
info: Repeating a single implicitly serial instruction |
| 31 |
assembled_snippet: B900000000B80000000031C131C131C131C1C3B900000000B80000000049B8020000000000000031C131C14983C0FF75F6C3 |
| 32 |
... |
| 33 |
--- |
| 34 |
mode: latency |
| 35 |
key: |
| 36 |
instructions: |
| 37 |
- 'XOR32rr EDI EDI EDI' |
| 38 |
config: '' |
| 39 |
register_initial_values: |
| 40 |
- 'EDI=0x0' |
| 41 |
cpu_name: znver3 |
| 42 |
llvm_triple: x86_64-unknown-linux-gnu |
| 43 |
num_repetitions: 1000000 |
| 44 |
measurements: |
| 45 |
- { key: latency, value: 0.198311, per_snippet_value: 0.198311 } |
| 46 |
error: '' |
| 47 |
info: Repeating a single implicitly serial instruction |
| 48 |
assembled_snippet: BF0000000031FF31FF31FF31FFC3BF0000000049B8020000000000000031FF31FF4983C0FF75F6C3 |
| 49 |
... |