File: analysis-naive-clusterization-same-opcode-different-sched-class.test

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (49 lines) | stat: -rw-r--r-- 1,799 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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

# Naive clusterization mainly groups by instruction opcode,
# but it should also partition the benchmarks of the same opcode
# by the sched class. For example, a regular `xor`, and same-operand `xor`
# may have different characteristics, and it will be confusing/misleading
# to group them.

# CHECK-CLUSTERS: {{^}}cluster_id,opcode_name,config,sched_class,latency{{$}}
# CHECK-CLUSTERS-NEXT: {{^}}0,
# CHECK-CLUSTERS-SAME: ,1.00{{$}}
# CHECK-CLUSTERS:      {{^}}1,
# CHECK-CLUSTERS-SAME: ,0.20{{$}}

---
mode:            latency
key:
  instructions:
    - 'XOR32rr ECX ECX EAX'
  config:          ''
  register_initial_values:
    - 'ECX=0x0'
    - 'EAX=0x0'
cpu_name:        znver3
llvm_triple:     x86_64-unknown-linux-gnu
num_repetitions: 1000000
measurements:
  - { key: latency, value: 1.00017, per_snippet_value: 1.00017 }
error:           ''
info:            Repeating a single implicitly serial instruction
assembled_snippet: B900000000B80000000031C131C131C131C1C3B900000000B80000000049B8020000000000000031C131C14983C0FF75F6C3
...
---
mode:            latency
key:
  instructions:
    - 'XOR32rr EDI EDI EDI'
  config:          ''
  register_initial_values:
    - 'EDI=0x0'
cpu_name:        znver3
llvm_triple:     x86_64-unknown-linux-gnu
num_repetitions: 1000000
measurements:
  - { key: latency, value: 0.198311, per_snippet_value: 0.198311 }
error:           ''
info:            Repeating a single implicitly serial instruction
assembled_snippet: BF0000000031FF31FF31FF31FFC3BF0000000049B8020000000000000031FF31FF4983C0FF75F6C3
...