+Fri Feb 21 19:48:19 2003 J"orn Rennecke <joern.rennecke@superh.com>
+
+ * cpu/sh64-media.cpu (make-mextr): Fix setting of count.
+
2003-02-18 DJ Delorie <dj@redhat.com>
* xstormy16.cpu (set-mem-alignfix-psw): Remove.
(.str "mextr" n " $rm, $rn, $rd")
(+ (f-op op) rm (f-ext extop) rn rd (f-rsvd 0))
(sequence ((QI count) (DI mask) (DI rhs))
- (set count (mul QI 8 (sub QI 8 n)))
+ (set count (mul QI 8 n))
(set mask (sll DI (inv 0) count))
(set rhs (srl (and rm mask) count))
- (set count (mul QI 8 n))
+ (set count (mul QI 8 (sub QI 8 n)))
(set mask (srl DI (inv 0) count))
(set rd (or DI rhs (sll DI (and rn mask) count))))))