From: Joern Rennecke Date: Fri, 21 Feb 2003 20:05:41 +0000 (+0000) Subject: cgen: X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b9a85d2e3d8ac97df6529fce2b19d434c2bbd479;p=cgen.git cgen: * cpu/sh64-media.cpu (make-mextr): Fix setting of count. sim/sh64: * sem-media-switch.c, sem-media.c: Regenerate. --- diff --git a/ChangeLog b/ChangeLog index 7e469b1..5ae7d6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 21 19:48:19 2003 J"orn Rennecke + + * cpu/sh64-media.cpu (make-mextr): Fix setting of count. + 2003-02-18 DJ Delorie * xstormy16.cpu (set-mem-alignfix-psw): Remove. diff --git a/cpu/sh64-media.cpu b/cpu/sh64-media.cpu index 49a6e71..4eb6cfd 100644 --- a/cpu/sh64-media.cpu +++ b/cpu/sh64-media.cpu @@ -1120,10 +1120,10 @@ (.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))))))