* m32c.cpu (f-dsp-8-s24): Mask high byte after shifting it.

* m32c-ibld.c: Regenerate.
This commit is contained in:
DJ Delorie 2010-07-03 04:09:56 +00:00
parent 81a0b7e2ae
commit 21375995bd
4 changed files with 12 additions and 4 deletions

View file

@ -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)))
)