This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Committed, cris.cpu: Add mstep insn.
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 27 Jan 2005 20:50:32 -0500 (EST)
- Subject: Committed, cris.cpu: Add mstep insn.
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