Committed, cris.cpu: Add mstep insn.

Hans-Peter Nilsson hp@bitrange.com
Fri Jan 28 01:50:00 GMT 2005


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



More information about the Binutils mailing list