summaryrefslogtreecommitdiff
path: root/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
commit167656c3d22df6db1a70345cc533d776c9c4bc86 (patch)
tree312bd6cf0202c1904cbe7fbcff1f5b2bef940420 /cpu
parent0389aa8150028cebd82721f9e7408c72f4b90306 (diff)
downloadbinutils-redhat-167656c3d22df6db1a70345cc533d776c9c4bc86.tar.gz
* cris.cpu (mstep): Add missing insn.
Diffstat (limited to 'cpu')
-rw-r--r--cpu/ChangeLog4
-rw-r--r--cpu/cris.cpu14
2 files changed, 18 insertions, 0 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog
index 859aa2a1ed..b954059a18 100644
--- a/cpu/ChangeLog
+++ b/cpu/ChangeLog
@@ -1,3 +1,7 @@
+2005-01-28 Hans-Peter Nilsson <hp@axis.com>
+
+ * cris.cpu (mstep): Add missing insn.
+
2005-01-25 Alexandre Oliva <aoliva@redhat.com>
2004-11-10 Alexandre Oliva <aoliva@redhat.com>
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"