From 9372689d72f902c8bae90536acc4747fb0a4b1e1 Mon Sep 17 00:00:00 2001 From: "Spencer E. Olson" Date: Mon, 9 Nov 2020 12:41:09 +0000 Subject: 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 --- opcodes/pru-opc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'opcodes/pru-opc.c') diff --git a/opcodes/pru-opc.c b/opcodes/pru-opc.c index f1fb7fe..05ddfb0 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", -- cgit v1.1