public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Committed, cris.cpu: Add mstep insn.
@ 2005-01-28  1:50 Hans-Peter Nilsson
  0 siblings, 0 replies; only message in thread
From: Hans-Peter Nilsson @ 2005-01-28  1:50 UTC (permalink / raw)
  To: binutils

Kind of showed up in the GCC testsuite... I hadn't noticed
before, because I ran tests using the v10 version (gcc
-march=v10), where a "real" multiplication insn is used.

	* cris.cpu (mstep): Add missing insn.

Index: cris.cpu
===================================================================
RCS file: /cvs/src/src/cpu/cris.cpu,v
retrieving revision 1.2
diff -c -p -r1.2 cris.cpu
*** cris.cpu	21 Dec 2004 04:37:58 -0000	1.2
--- cris.cpu	28 Jan 2005 01:26:23 -0000
***************
*** 3395,3400 ****
--- 3395,3414 ----
     (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"

brgds, H-P

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-28  1:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-28  1:50 Committed, cris.cpu: Add mstep insn Hans-Peter Nilsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).