summaryrefslogtreecommitdiff
path: root/opcodes/pru-opc.c
diff options
context:
space:
mode:
authorSpencer E. Olson <olsonse@umich.edu>2020-11-09 12:41:09 +0000
committerNick Clifton <nickc@redhat.com>2020-11-09 12:41:09 +0000
commit9372689d72f902c8bae90536acc4747fb0a4b1e1 (patch)
treeb6ec12b88ad28b41ba92f290df2cb10531ad7614 /opcodes/pru-opc.c
parent4a3e3e228280ebbd6320743c1bc2f1401e70300c (diff)
downloadbinutils-gdb-9372689d72f902c8bae90536acc4747fb0a4b1e1.tar.gz
Add support for the LMBD (left-most bit detect) instruction to the PRU assembler.
include * opcode/pru.h: Add LMBD (left-most bit detect) opcode index opcodes * pru-opc.c: Add opcode description for LMBD (left-most bit detect) gas * testsuite/gas/pru/misc.s: Add tests for lmbd (left-most bit detect) * testsuite/gas/pru/misc.d: Add tests for lmbd (left-most bit
Diffstat (limited to 'opcodes/pru-opc.c')
-rw-r--r--opcodes/pru-opc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/opcodes/pru-opc.c b/opcodes/pru-opc.c
index f1fb7fefe1e..05ddfb0358b 100644
--- a/opcodes/pru-opc.c
+++ b/opcodes/pru-opc.c
@@ -121,6 +121,8 @@ const struct pru_opcode pru_opcodes[] =
OP_MATCH_JAL, OP_MASK_FMT2_OP | OP_MASK_SUBOP, 0, unsigned_immed16_overflow},
{ "ldi", prui_ldi, "d,W",
OP_MATCH_LDI, OP_MASK_FMT2_OP | OP_MASK_SUBOP, 0, unsigned_immed16_overflow},
+ { "lmbd", prui_lmbd, "d,s,b",
+ OP_MATCH_LMBD, OP_MASK_FMT2_OP | OP_MASK_SUBOP, 0, unsigned_immed8_overflow},
{ "halt", prui_halt, "",
OP_MATCH_HALT, OP_MASK_FMT2_OP | OP_MASK_SUBOP, 0, no_overflow},
{ "slp", prui_slp, "w",