http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
Kazumoto Kojima changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
--- Comment #6 from Kazumoto Kojima 2011-12-01
23:02:08 UTC ---
Author: kkojima
Date: Thu Dec 1 23:01:58 2011
New Revision: 181896
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181896
Log:
PR target/50814.
* config/sh/sh.c (expa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
--- Comment #5 from Kazumoto Kojima 2011-11-28
13:43:16 UTC ---
BTW, when regtesting, I've found that there are many ICEs at -O0.
A typical one is gcc.c-torture/compile/2923-1.c with -m2a -O0:
...: error: insn does not satisfy its constraint
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
--- Comment #4 from Kazumoto Kojima 2011-11-28
04:31:51 UTC ---
Created attachment 25927
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25927
A patch
I'm testing the attached patch.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
--- Comment #3 from Kazumoto Kojima 2011-11-28
00:09:17 UTC ---
(In reply to comment #2)
> 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: 01001
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
--- Comment #2 from Oleg Endo 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50814
--- Comment #1 from Kazumoto Kojima 2011-10-21
00:24:36 UTC ---
(In reply to comment #0)
> It is also not clear to me why SH2A seems to require different handling for
> dynamic shifts than SH3 or SH4...
Will be slightly different because sh2a's