diff options
author | DJ Delorie <dj@delorie.com> | 2010-07-03 04:09:56 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2010-07-03 04:09:56 +0000 |
commit | 44d48438fed6d4aca4ff7acdfb6870d3b829cd44 (patch) | |
tree | db652f1370ef1cf2194653b40c61fbc5cfe58935 /cpu | |
parent | 2db40f2554a8053861db0d905284b024a64f4e65 (diff) | |
download | gdb-44d48438fed6d4aca4ff7acdfb6870d3b829cd44.tar.gz |
* m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it.
* m32c-ibld.c: Regenerate.
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ChangeLog | 4 | ||||
-rw-r--r-- | cpu/m32c.cpu | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpu/ChangeLog b/cpu/ChangeLog index 975feea64d0..667538ac292 100644 --- a/cpu/ChangeLog +++ b/cpu/ChangeLog @@ -1,3 +1,7 @@ +2010-07-03 DJ Delorie <dj@delorie.com> + + * m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it. + 2010-02-11 Doug Evans <dje@sebabeach.org> * m32r.cpu (HASH-PREFIX): Delete. diff --git a/cpu/m32c.cpu b/cpu/m32c.cpu index 28d6ea56852..bcc36161f7c 100644 --- a/cpu/m32c.cpu +++ b/cpu/m32c.cpu @@ -572,10 +572,10 @@ ) (df f-dsp-8-s24 "24 bit signed" (all-isas) 8 24 INT ((value pc) (or SI - (or (srl value 16) (and value #xff00)) + (or (and (srl value 16) #xff) (and value #xff00)) (sll (ext INT (trunc QI (and value #xff))) 16))) ((value pc) (or SI - (or (srl value 16) (and value #xff00)) + (or (and (srl value 16) #xff) (and value #xff00)) (sll (ext INT (trunc QI (and value #xff))) 16))) ) |