summaryrefslogtreecommitdiffstats
path: root/cpu/cris.cpu
diff options
context:
space:
mode:
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 955ad32189..51f54b3246 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"
OpenPOWER on IntegriCloud