summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-exegesis
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-09-27 13:26:37 +0000
committerClement Courbet <courbet@google.com>2018-09-27 13:26:37 +0000
commit30183093abf2b7d563c1c233a89aa3e115e4109c (patch)
treeef1ea58e2cd88f9f8c5bedb07ae5b8e1837811e2 /llvm/test/tools/llvm-exegesis
parentd1f3002ceef2a9530314edd41e5682728b567a0b (diff)
downloadbcm5719-llvm-30183093abf2b7d563c1c233a89aa3e115e4109c.tar.gz
bcm5719-llvm-30183093abf2b7d563c1c233a89aa3e115e4109c.zip
[llvm-exegesis] Fix PR39096.
Summary: The key is now the resource name, not the resource id. Reviewers: gchatelet Subscribers: tschuett, RKSimon, llvm-commits Differential Revision: https://reviews.llvm.org/D52607 llvm-svn: 343208
Diffstat (limited to 'llvm/test/tools/llvm-exegesis')
-rw-r--r--llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops-backwards.test28
-rw-r--r--llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops.test28
2 files changed, 56 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops-backwards.test b/llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops-backwards.test
new file mode 100644
index 00000000000..32a1c87964f
--- /dev/null
+++ b/llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops-backwards.test
@@ -0,0 +1,28 @@
+# This tests backwards-compatibility of the yaml schema (see PR39082).
+# RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-inconsistencies-output-file=- -analysis-clusters-output-file="" -analysis-numpoints=1 | FileCheck %s
+
+# CHECK: DOCTYPE
+
+---
+mode: uops
+key:
+ instructions:
+ - 'VZEROALL'
+ config: ''
+ register_initial_values:
+cpu_name: haswell
+llvm_triple: x86_64-unknown-linux-gnu
+num_repetitions: 10000
+measurements:
+ - { key: '3', value: 0.0015, per_snippet_value: 0.0015 }
+ - { key: '4', value: 0.0011, per_snippet_value: 0.0011 }
+ - { key: '5', value: 0.0006, per_snippet_value: 0.0006 }
+ - { key: '6', value: 0.0004, per_snippet_value: 0.0004 }
+ - { key: '7', value: 0.0002, per_snippet_value: 0.0002 }
+ - { key: '8', value: 1.0008, per_snippet_value: 1.0008 }
+ - { key: '9', value: 1.0022, per_snippet_value: 1.0022 }
+ - { key: '10', value: 0.0001, per_snippet_value: 0.0001 }
+error: ''
+info: ''
+assembled_snippet: C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C3
+...
diff --git a/llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops.test b/llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops.test
new file mode 100644
index 00000000000..18654e5cb18
--- /dev/null
+++ b/llvm/test/tools/llvm-exegesis/X86/analysis-inconsistencies-uops.test
@@ -0,0 +1,28 @@
+# RUN: llvm-exegesis -mode=analysis -benchmarks-file=%s -analysis-inconsistencies-output-file=- -analysis-clusters-output-file="" -analysis-numpoints=1 | FileCheck %s
+
+# CHECK: DOCTYPE
+
+---
+mode: uops
+key:
+ instructions:
+ - 'VZEROALL'
+ config: ''
+ register_initial_values:
+cpu_name: haswell
+llvm_triple: x86_64-unknown-linux-gnu
+num_repetitions: 10000
+measurements:
+ - { key: HWPort0, value: 0.0015, per_snippet_value: 0.0015 }
+ - { key: HWPort1, value: 0.0011, per_snippet_value: 0.0011 }
+ - { key: HWPort2, value: 0.0006, per_snippet_value: 0.0006 }
+ - { key: HWPort3, value: 0.0004, per_snippet_value: 0.0004 }
+ - { key: HWPort4, value: 0.0002, per_snippet_value: 0.0002 }
+ - { key: HWPort5, value: 1.0008, per_snippet_value: 1.0008 }
+ - { key: HWPort6, value: 1.0022, per_snippet_value: 1.0022 }
+ - { key: HWPort7, value: 0.0001, per_snippet_value: 0.0001 }
+ - { key: NumMicroOps, value: 20.0073, per_snippet_value: 20.0073 }
+error: ''
+info: ''
+assembled_snippet: C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C5FC77C3
+...
OpenPOWER on IntegriCloud