summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/llvm-exegesis.rst
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-01 14:49:06 +0000
committerClement Courbet <courbet@google.com>2018-06-01 14:49:06 +0000
commit6eb680a40d587a56f6ffc54c8331c2f61e1bf7cf (patch)
treeeb04a888d2b4bda3de6cd57b1e7bf92f3eed7468 /llvm/docs/CommandGuide/llvm-exegesis.rst
parent0da27c7c8a1e4a5acf50aadaaf709d4de5132131 (diff)
downloadbcm5719-llvm-6eb680a40d587a56f6ffc54c8331c2f61e1bf7cf.tar.gz
bcm5719-llvm-6eb680a40d587a56f6ffc54c8331c2f61e1bf7cf.zip
[llvm-exegesis] Fix off-by-one in llvm-exegesis documentation.
llvm-svn: 333759
Diffstat (limited to 'llvm/docs/CommandGuide/llvm-exegesis.rst')
-rw-r--r--llvm/docs/CommandGuide/llvm-exegesis.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/CommandGuide/llvm-exegesis.rst b/llvm/docs/CommandGuide/llvm-exegesis.rst
index bd7132700d0..1cba9788584 100644
--- a/llvm/docs/CommandGuide/llvm-exegesis.rst
+++ b/llvm/docs/CommandGuide/llvm-exegesis.rst
@@ -67,7 +67,7 @@ To measure the latency of all instructions for the host architecture, run:
.. code-block:: bash
#!/bin/bash
- readonly INSTRUCTIONS=$(grep INSTRUCTION_LIST_END build/lib/Target/X86/X86GenInstrInfo.inc | cut -f2 -d=)
+ readonly INSTRUCTIONS=$(($(grep INSTRUCTION_LIST_END build/lib/Target/X86/X86GenInstrInfo.inc | cut -f2 -d=) - 1))
for INSTRUCTION in $(seq 1 ${INSTRUCTIONS});
do
./build/bin/llvm-exegesis -mode=latency -opcode-index=${INSTRUCTION} | sed -n '/---/,$p'
OpenPOWER on IntegriCloud