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 | FileCheck -check-prefixes=CHECK-CLUSTERS %s
2 # RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-inconsistencies-output-file=- -analysis-clustering-epsilon=0.5 -analysis-inconsistency-epsilon=0.5 -analysis-numpoints=1 | FileCheck -check-prefixes=CHECK-INCONSISTENCIES-ALL,CHECK-INCONSISTENCIES-STABLE %s
3 # RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-inconsistencies-output-file=- -analysis-clustering-epsilon=0.5 -analysis-inconsistency-epsilon=0.5 -analysis-display-unstable-clusters -analysis-numpoints=1 | FileCheck -check-prefixes=CHECK-INCONSISTENCIES-ALL,CHECK-INCONSISTENCIES-UNSTABLE %s
5 # We have one ADD32rr measurement, and two measurements for SQRTSSr.
6 # The ADD32rr measurement and one of the SQRTSSr measurements are identical,
7 # and thus will be be in the same cluster. But the second SQRTSSr measurement
8 # is different from the first SQRTSSr measurement, and thus it will be in it's
9 # own cluster. We do reclusterization, and thus since there is more than one
10 # measurement from SQRTSSr, and they are not in the same cluster, we move
11 # all two SQRTSSr measurements into their own cluster, and mark it as unstable.
12 # By default, we do not show such unstable clusters.
13 # If told to show, we *only* show such unstable clusters.
15 # CHECK-CLUSTERS: {{^}}cluster_id,opcode_name,config,sched_class,latency{{$}}
16 # CHECK-CLUSTERS-NEXT: {{^}}0,
17 # CHECK-CLUSTERS-SAME: ,90.00{{$}}
18 # CHECK-CLUSTERS: {{^}}3,
19 # CHECK-CLUSTERS-SAME: ,90.11{{$}}
20 # CHECK-CLUSTERS-NEXT: {{^}}3,
21 # CHECK-CLUSTERS-SAME: ,100.00{{$}}
23 # CHECK-INCONSISTENCIES-STABLE: ADD32rr
24 # CHECK-INCONSISTENCIES-STABLE-NOT: ADD32rr
25 # CHECK-INCONSISTENCIES-STABLE-NOT: SQRTSSr
27 # CHECK-INCONSISTENCIES-UNSTABLE: SQRTSSr
28 # CHECK-INCONSISTENCIES-UNSTABLE: SQRTSSr
29 # CHECK-INCONSISTENCIES-UNSTABLE-NOT: SQRTSSr
30 # CHECK-INCONSISTENCIES-UNSTABLE-NOT: ADD32rr
36 - 'ADD32rr EDX EDX EAX'
38 register_initial_values:
42 llvm_triple: x86_64-unknown-linux-gnu
43 num_repetitions: 10000
45 - { key: latency, value: 90.0000, per_snippet_value: 90.0000 }
47 info: Repeating a single implicitly serial instruction
48 assembled_snippet: BA00000000B80000000001C201C201C201C201C201C201C201C201C201C201C201C201C201C201C201C2C3
53 - 'SQRTSSr XMM11 XMM11'
55 register_initial_values:
58 llvm_triple: x86_64-unknown-linux-gnu
59 num_repetitions: 10000
61 - { key: latency, value: 90.1111, per_snippet_value: 90.1111 }
63 info: Repeating a single explicitly serial instruction
64 assembled_snippet: 4883EC10C7042400000000C744240400000000C744240800000000C744240C00000000C57A6F1C244883C410F3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBC3
70 - 'SQRTSSr XMM11 XMM11'
72 register_initial_values:
75 llvm_triple: x86_64-unknown-linux-gnu
76 num_repetitions: 10000
78 - { key: latency, value: 100, per_snippet_value: 100 }
80 info: Repeating a single explicitly serial instruction
81 assembled_snippet: 4883EC10C7042400000000C744240400000000C744240800000000C744240C00000000C57A6F1C244883C410F3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBC3