summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s')
-rw-r--r--llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s b/llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s
new file mode 100644
index 00000000000..1d719ce1609
--- /dev/null
+++ b/llvm/test/tools/llvm-exegesis/AArch64/latency-by-opcode-name.s
@@ -0,0 +1,12 @@
+# RUN: llvm-exegesis -mode=latency -opcode-name=ADDXrr | FileCheck %s
+
+CHECK: ---
+CHECK-NEXT: mode: latency
+CHECK-NEXT: key:
+CHECK-NEXT: instructions:
+CHECK-NEXT: ADDXrr [[REG1:X[0-9]+|LR]] [[REG2:X[0-9]+|LR]] [[REG3:X[0-9]+|LR]]
+CHECK-NEXT: config: ''
+CHECK-NEXT: register_initial_values:
+CHECK-DAG: - '[[REG2]]=0x0'
+# We don't check REG3 because in the case that REG2=REG3 the check would fail
+CHECK-LAST: ...
OpenPOWER on IntegriCloud