aboutsummaryrefslogtreecommitdiff
path: root/opcodes/nios2-opc.c
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2013-03-12 02:20:08 +0000
committerSandra Loosemore <sandra@codesourcery.com>2013-03-12 02:20:08 +0000
commitf5cb796a1ebfdf5bb5539acce0d6567e2ed594ce (patch)
tree21129fcef7a9e54a0869223fcad748dd9a6bfbb4 /opcodes/nios2-opc.c
parent21fde85cfdf7ab1aaa4c24e18c16f99d5b8cc1a1 (diff)
downloadgdb-f5cb796a1ebfdf5bb5539acce0d6567e2ed594ce.zip
gdb-f5cb796a1ebfdf5bb5539acce0d6567e2ed594ce.tar.gz
gdb-f5cb796a1ebfdf5bb5539acce0d6567e2ed594ce.tar.bz2
2013-03-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
include/ * opcode/nios2.h (OP_RDPRS): New define. (OP_MATCH_RDPRS): Likewise. opcodes/ * nios2-opc.c (nios2_builtin_opcodes): Add entry for rdprs. gas/testsuite/ * gas/nios2/nios2.exp: Run rdprs. * gas/nios2/rdprs.d: New file. * gas/nios2/rdprs.s: Likewise.
Diffstat (limited to 'opcodes/nios2-opc.c')
-rw-r--r--opcodes/nios2-opc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/opcodes/nios2-opc.c b/opcodes/nios2-opc.c
index ff24652..9617d47 100644
--- a/opcodes/nios2-opc.c
+++ b/opcodes/nios2-opc.c
@@ -345,6 +345,8 @@ const struct nios2_opcode nios2_builtin_opcodes[] =
OP_MATCH_ORI, OP_MASK_IOP, NIOS2_INSN_ORI, unsigned_immed16_overflow},
{"rdctl", "d,c", "d,c,E", 2,
OP_MATCH_RDCTL, OP_MASK_RDCTL, 0, no_overflow},
+ {"rdprs", "t,s,i", "t,s,i,E", 3,
+ OP_MATCH_RDPRS, OP_MASK_IOP, 0, unsigned_immed16_overflow},
{"ret", "", "E", 0,
OP_MATCH_RET, OP_MASK, 0, no_overflow},
{"rol", "d,s,t", "d,s,t,E", 3,