public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Patch, avr]Fix multiple ICE fallout of PR 69764
@ 2016-03-10 13:47 Senthil Kumar Selvaraj
  2016-03-15 16:22 ` Denis Chertykov
  0 siblings, 1 reply; 2+ messages in thread
From: Senthil Kumar Selvaraj @ 2016-03-10 13:47 UTC (permalink / raw)
  To: GCC Patches; +Cc: Denis Chertykov, Georg-Johann Lay

Hi,

   This patch fixes ~230 internal compiler errors that showed up after
   the fix for PR 69764. After the patch, target backends need to
   explicitly specify mode for operand 2 of shift and rotate patterns -
   see md.texi mod at
   https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/doc/md.texi?r1=233358&r2=233613&pathrev=233613.

   The avr backend had VOIDmode as the mode for rotl SPN, and this patch
   sets it to the mode of the insn to fix the problem.

   Reg testing shows ICE fixes and no new failures.

   If this is ok, could someone commit please? I don't have commit
   access.

Regards
Senthil

2016-03-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* config/avr/avr.md (rotl<mode>3): Set
	mode for operand 2.

diff --git gcc/config/avr/avr.md gcc/config/avr/avr.md
index ff26f2e..c988446 100644
--- gcc/config/avr/avr.md
+++ gcc/config/avr/avr.md
@@ -3351,7 +3351,7 @@
 (define_expand "rotl<mode>3"
   [(parallel [(set (match_operand:HISI 0 "register_operand" "")
                    (rotate:HISI (match_operand:HISI 1 "register_operand" "")
-                                (match_operand:VOID 2 "const_int_operand" "")))
+                                (match_operand:HISI 2 "const_int_operand" "")))
               (clobber (match_dup 3))])]
   ""
   {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Patch, avr]Fix multiple ICE fallout of PR 69764
  2016-03-10 13:47 [Patch, avr]Fix multiple ICE fallout of PR 69764 Senthil Kumar Selvaraj
@ 2016-03-15 16:22 ` Denis Chertykov
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Chertykov @ 2016-03-15 16:22 UTC (permalink / raw)
  To: Senthil Kumar Selvaraj; +Cc: GCC Patches, Georg-Johann Lay

2016-03-10 16:46 GMT+03:00 Senthil Kumar Selvaraj
<senthil_kumar.selvaraj@atmel.com>:
> Hi,
>
>    This patch fixes ~230 internal compiler errors that showed up after
>    the fix for PR 69764. After the patch, target backends need to
>    explicitly specify mode for operand 2 of shift and rotate patterns -
>    see md.texi mod at
>    https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/doc/md.texi?r1=233358&r2=233613&pathrev=233613.
>
>    The avr backend had VOIDmode as the mode for rotl SPN, and this patch
>    sets it to the mode of the insn to fix the problem.
>
>    Reg testing shows ICE fixes and no new failures.
>
>    If this is ok, could someone commit please? I don't have commit
>    access.
>
> Regards
> Senthil
>
> 2016-03-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
>
>         * config/avr/avr.md (rotl<mode>3): Set
>         mode for operand 2.

Committed.

Denis.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-15 16:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-10 13:47 [Patch, avr]Fix multiple ICE fallout of PR 69764 Senthil Kumar Selvaraj
2016-03-15 16:22 ` Denis Chertykov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).