summaryrefslogtreecommitdiff
path: root/parse-opcodes
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2016-01-21 16:57:56 -0500
committerGravatar Benjamin Barenblat <bbaren@google.com>2016-01-21 16:57:56 -0500
commit8f736d5a3975a5d798700e6764216647258981b6 (patch)
treec97e6d19dffbfcd63e62f0c256f7144a0aa9fd71 /parse-opcodes
parentb307dca0dcf4fd9be9ddc5c80ead64f12d37c393 (diff)
Clarify use of yank in Go backend
Diffstat (limited to 'parse-opcodes')
-rwxr-xr-xparse-opcodes1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-opcodes b/parse-opcodes
index c5427d2..7d7ec2d 100755
--- a/parse-opcodes
+++ b/parse-opcodes
@@ -798,6 +798,7 @@ def make_chisel():
def print_go_insn(name):
print '\tcase A%s:' % name.upper().replace('.', '')
+ # Yank bits 0-6 of the encoded instruction (i.e., the opcode) and print them.
print '\t\treturn 0x%x' % yank(match[name], 0, 7)
def make_go():