[Bug target/50814] SH Target: SHAD / SHLD instructions not used on SH2A
oleg.endo@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Nov 28 00:20:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
--- Comment #2 from Oleg Endo <oleg.endo@t-online.de> 2011-11-27 22:38:34 UTC ---
(In reply to comment #1)
> Will be slightly different because sh2a's shad&shld are 4-byte
> insns. Perhaps something like below will work, though I don't
> test it at all.
>
According to the SW manual document rej09b0051_sh2a.pdf the SHAD and SHLD insns
have the same 2-byte format as on SH3:
SHAD Rm, Rn: 0100nnnnmmmm1100
SHLD Rm, Rn: 0100nnnnmmmm1101
Am I missing something there?
More information about the Gcc-bugs
mailing list