aboutsummaryrefslogtreecommitdiff
path: root/cpu/cris.cpu
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-01-28 01:50:18 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-01-28 01:50:18 +0000
commit46da9a195ec1e9dfd03da95ab7b206467d03f319 (patch)
tree9bf6039141c6797497ba1544fbd4bc4f4aaab135 /cpu/cris.cpu
parent14d8cbf6fc8dd8e8b11ec91fd6102cd158395cb7 (diff)
downloadgdb-46da9a195ec1e9dfd03da95ab7b206467d03f319.zip
gdb-46da9a195ec1e9dfd03da95ab7b206467d03f319.tar.gz
gdb-46da9a195ec1e9dfd03da95ab7b206467d03f319.tar.bz2
* cris.cpu (mstep): Add missing insn.
Diffstat (limited to 'cpu/cris.cpu')
-rw-r--r--cpu/cris.cpu14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpu/cris.cpu b/cpu/cris.cpu
index 955ad32..51f54b3 100644
--- a/cpu/cris.cpu
+++ b/cpu/cris.cpu
@@ -3395,6 +3395,20 @@
(cris-arit5 add SI Rd-sfield Rd-sfield Ps rbit rbit))
)
+; MSTEP Rs,Rd [ Rd | 01111111 | Rs ]
+(dni-cdt-attr
+ mstep "Multiply step"
+ (MACH-PRE-V32)
+ "mstep $Rs,$Rd"
+ (+ Rd MODE_REGISTER RFIX_MSTEP SIZE_FIXED Rs)
+ (sequence
+ ((SI tmpd) (SI tmps))
+ (set tmps Rs)
+ (set tmpd (add (sll Rd 1) (if SI nbit tmps 0)))
+ (set Rd tmpd)
+ (setf-move SI tmpd))
+)
+
; DSTEP Rs,Rd [ Rd | 01101111 | Rs ]
(dni-cdt
dstep "Division step"