This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/50814] SH Target: SHAD / SHLD instructions not used on SH2A
- From: "oleg dot endo at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 27 Nov 2011 22:38:34 +0000
- Subject: [Bug target/50814] SH Target: SHAD / SHLD instructions not used on SH2A
- Auto-submitted: auto-generated
- References: <bug-50814-4@http.gcc.gnu.org/bugzilla/>
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?