From 8de1711f7ccfdbe52f5d09354d020da4fe8b3c87 Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Tue, 8 Oct 2019 07:08:48 +0000 Subject: [PATCH] [llvm-exegesis] Add stabilization test with config In preparation for D68629. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374020 91177308-0d34-0410-b5e6-96231b3b80d8 --- ...analysis-cluster-stabilization-config.test | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 test/tools/llvm-exegesis/X86/analysis-cluster-stabilization-config.test diff --git a/test/tools/llvm-exegesis/X86/analysis-cluster-stabilization-config.test b/test/tools/llvm-exegesis/X86/analysis-cluster-stabilization-config.test new file mode 100644 index 00000000000..0403af4a229 --- /dev/null +++ b/test/tools/llvm-exegesis/X86/analysis-cluster-stabilization-config.test @@ -0,0 +1,43 @@ +# 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-UNSTABLE %s + +# We have two measurements with different measurements for SQRTSSr, but they +# have different configs, so they should not be placed in the same cluster by +# stabilization. + +# CHECK-UNSTABLE: SQRTSSr +# CHECK-UNSTABLE: SQRTSSr + +--- +mode: latency +key: + instructions: + - 'SQRTSSr XMM11 XMM11' + config: 'config1' + register_initial_values: + - 'XMM11=0x0' +cpu_name: bdver2 +llvm_triple: x86_64-unknown-linux-gnu +num_repetitions: 10000 +measurements: + - { key: latency, value: 90.1111, per_snippet_value: 90.1111 } +error: '' +info: Repeating a single explicitly serial instruction +assembled_snippet: 4883EC10C7042400000000C744240400000000C744240800000000C744240C00000000C57A6F1C244883C410F3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBC3 +... +--- +mode: latency +key: + instructions: + - 'SQRTSSr XMM11 XMM11' + config: 'config2' + register_initial_values: + - 'XMM11=0x0' +cpu_name: bdver2 +llvm_triple: x86_64-unknown-linux-gnu +num_repetitions: 10000 +measurements: + - { key: latency, value: 100, per_snippet_value: 100 } +error: '' +info: Repeating a single explicitly serial instruction +assembled_snippet: 4883EC10C7042400000000C744240400000000C744240800000000C744240C00000000C57A6F1C244883C410F3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBF3450F51DBC3 +... -- 2.40.0