[llvm] b3b9b29 - [NFC][exegesis] Add test for the following patch
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 7 07:54:48 PDT 2021
Author: Roman Lebedev
Date: 2021-09-07T17:54:36+03:00
New Revision: b3b9b297a0d2b572f2232c3ca926a1be45040395
URL: https://github.com/llvm/llvm-project/commit/b3b9b297a0d2b572f2232c3ca926a1be45040395
DIFF: https://github.com/llvm/llvm-project/commit/b3b9b297a0d2b572f2232c3ca926a1be45040395.diff
LOG: [NFC][exegesis] Add test for the following patch
Added:
llvm/test/tools/llvm-exegesis/X86/analysis-naive-clusterization-same-opcode-different-sched-class.test
Modified:
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-exegesis/X86/analysis-naive-clusterization-same-opcode-
diff erent-sched-class.test b/llvm/test/tools/llvm-exegesis/X86/analysis-naive-clusterization-same-opcode-
diff erent-sched-class.test
new file mode 100644
index 000000000000..86190825c9c3
--- /dev/null
+++ b/llvm/test/tools/llvm-exegesis/X86/analysis-naive-clusterization-same-opcode-
diff erent-sched-class.test
@@ -0,0 +1,43 @@
+# RUN: llvm-exegesis -mcpu=znver3 -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
+
+# CHECK-CLUSTERS: {{^}}cluster_id,opcode_name,config,sched_class,latency{{$}}
+# CHECK-CLUSTERS-NEXT: {{^}}0,
+# CHECK-CLUSTERS-SAME: ,1.00{{$}}
+# CHECK-CLUSTERS-NEXT: {{^}}0,
+# 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
+...
More information about the llvm-commits
mailing list