public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns
@ 2014-10-23 17:59 gjl at gcc dot gnu.org
  2014-10-23 18:18 ` [Bug rtl-optimization/63633] [avr] internal compiler error: unrecognizable insn with mult insns gjl at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2014-10-23 17:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

            Bug ID: 63633
           Summary: [avr] internal compiler error: urecognizable insn with
                    multi insns
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gjl at gcc dot gnu.org
            Target: avr

void ice_mult (int x)
{
    register long reg asm ("22");
    __asm volatile (" " :: "r" (reg = 0x12345 * x));
}

This programm raises ICE when compiler with

$ avr-gcc-4.9.2 -S -Os -mmcu=avr51

Some pass is propagating hard reg:SI 22 to SET_DEST of insn 7 even though that
register is covered by clobber reg:DI 18  (DI 18 covers R18...R25):


-.c: In function 'ice_mult':
-.c:5:1: error: unrecognizable insn:
 }
 ^
(insn 7 6 8 2 (parallel [
            (set (reg/v:SI 22 r22 [ reg ])
                (mult:SI (reg:SI 45 [ D.1458 ])
                    (const_int 74565 [0x12345])))
            (clobber (reg:HI 26 r26))
            (clobber (reg:DI 18 r18))
        ]) fun-eval-avr.c:4 -1
     (nil))
-.c:5:1: internal compiler error: in extract_insn, at recog.c:2202
-.c:5:1: internal compiler error: Segmentation fault


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

* [Bug rtl-optimization/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
@ 2014-10-23 18:18 ` gjl at gcc dot gnu.org
  2014-11-21 14:05 ` [Bug middle-end/63633] " gjl at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2014-10-23 18:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-10-23
            Version|4.9.2                       |4.9.1
            Summary|[avr] internal compiler     |[avr] internal compiler
                   |error: urecognizable insn   |error: unrecognizable insn
                   |with multi insns            |with mult insns
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.1


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

* [Bug middle-end/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
  2014-10-23 18:18 ` [Bug rtl-optimization/63633] [avr] internal compiler error: unrecognizable insn with mult insns gjl at gcc dot gnu.org
@ 2014-11-21 14:05 ` gjl at gcc dot gnu.org
  2014-11-21 14:09 ` [Bug target/63633] " gjl at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2014-11-21 14:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Fri Nov 21 14:04:25 2014
New Revision: 217922

URL: https://gcc.gnu.org/viewcvs?rev=217922&root=gcc&view=rev
Log:
gcc/
    Forward-port from 2014-10-30 4_9-branch r216934
    PR target/63633
    * config/avr/avr-protos.h (regmask): New inline function.
    (avr_fix_inputs, avr_emit3_fix_outputs): New protos.
    * config/avr/avr.c (avr_fix_operands, avr_move_fixed_operands)
    (avr_fix_inputs, avr_emit3_fix_outputs): New functions.
    * config/avr/avr-fixed.md (mulqq3_nomul, muluqq3_nomul)
    (mul<ALL2QA>3, mul<ALL4A>3, <usdiv><ALL1Q>3, <usdiv><ALL2QA>3)
    (<usdiv><ALL4A>3, round<ALL124QA>3): Fix input operands.
    * config/avr/avr-dimode.md (add<ALL8>3, sub<ALL8>3)
    (<ss_addsub><ALL8S>3, <us_addsub><ALL8U>3, cbranch<ALL8>4)
    (<di_shifts><ALL8>3, <any_extend>mulsidi3): Fix input operands.
    * config/avr/avr.md (mulqi3_call, mulhi3_call, mulsi3, mulpsi3)
    (mulu<QIHI>si3, muls<QIHI>si3, mulohisi3, <any_extend>mulhisi3)
    (usmulhisi3, <any_extend>mulhi3_highpart, mulsqipsi3)
    (fmul, fmuls, fmulsu): Fix operands.  Turn insn into expander as
    needed.

gcc/testsuite/
    Forward-port from 2014-10-30 4_9-branch r216934
    PR target/63633
    * gcc.target/avr/torture/pr63633-ice-mult.c: New test.


Added:
    trunk/gcc/testsuite/gcc.target/avr/torture/pr63633-ice-mult.c
Modified:
    trunk/gcc/config/avr/avr-dimode.md
    trunk/gcc/config/avr/avr-fixed.md
    trunk/gcc/config/avr/avr-protos.h
    trunk/gcc/config/avr/avr.c
    trunk/gcc/config/avr/avr.md
    trunk/gcc/testsuite/ChangeLog


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

* [Bug target/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
  2014-10-23 18:18 ` [Bug rtl-optimization/63633] [avr] internal compiler error: unrecognizable insn with mult insns gjl at gcc dot gnu.org
  2014-11-21 14:05 ` [Bug middle-end/63633] " gjl at gcc dot gnu.org
@ 2014-11-21 14:09 ` gjl at gcc dot gnu.org
  2015-04-16  8:48 ` gjl at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2014-11-21 14:09 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|NEW                         |RESOLVED
          Component|middle-end                  |target
      Known to work|                            |4.9.3, 5.0
         Resolution|---                         |FIXED
           Assignee|unassigned at gcc dot gnu.org      |gjl at gcc dot gnu.org
   Target Milestone|---                         |4.9.3
      Known to fail|5.0                         |

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Fixed in 4.9.3+


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

* [Bug target/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-11-21 14:09 ` [Bug target/63633] " gjl at gcc dot gnu.org
@ 2015-04-16  8:48 ` gjl at gcc dot gnu.org
  2015-04-16  8:52 ` gjl at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-04-16  8:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.creekmore@synapse-
                   |                            |wireless.com

--- Comment #4 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
*** Bug 65657 has been marked as a duplicate of this bug. ***


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

* [Bug target/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-04-16  8:48 ` gjl at gcc dot gnu.org
@ 2015-04-16  8:52 ` gjl at gcc dot gnu.org
  2015-06-26 20:03 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gjl at gcc dot gnu.org @ 2015-04-16  8:52 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Reopened on behalf of PR65657.


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

* [Bug target/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2015-04-16  8:52 ` gjl at gcc dot gnu.org
@ 2015-06-26 20:03 ` jakub at gcc dot gnu.org
  2015-06-26 20:33 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


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

* [Bug target/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2015-06-26 20:03 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:33 ` jakub at gcc dot gnu.org
  2015-06-26 21:18 ` pinskia at gcc dot gnu.org
  2021-08-13  6:58 ` egallager at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


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

* [Bug target/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2015-06-26 20:33 ` jakub at gcc dot gnu.org
@ 2015-06-26 21:18 ` pinskia at gcc dot gnu.org
  2021-08-13  6:58 ` egallager at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-06-26 21:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.4                       |---


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

* [Bug target/63633] [avr] internal compiler error: unrecognizable insn with mult insns
  2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2015-06-26 21:18 ` pinskia at gcc dot gnu.org
@ 2021-08-13  6:58 ` egallager at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: egallager at gcc dot gnu.org @ 2021-08-13  6:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63633

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dinuxbg at gmail dot com,
                   |                            |egallager at gcc dot gnu.org,
                   |                            |jonathan.creekmore@synapse-
                   |                            |wireless.com,
                   |                            |marxin at gcc dot gnu.org

--- Comment #10 from Eric Gallager <egallager at gcc dot gnu.org> ---
redoing some CCs that got lost

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

end of thread, other threads:[~2021-08-13  6:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-23 17:59 [Bug rtl-optimization/63633] New: [avr] internal compiler error: urecognizable insn with multi insns gjl at gcc dot gnu.org
2014-10-23 18:18 ` [Bug rtl-optimization/63633] [avr] internal compiler error: unrecognizable insn with mult insns gjl at gcc dot gnu.org
2014-11-21 14:05 ` [Bug middle-end/63633] " gjl at gcc dot gnu.org
2014-11-21 14:09 ` [Bug target/63633] " gjl at gcc dot gnu.org
2015-04-16  8:48 ` gjl at gcc dot gnu.org
2015-04-16  8:52 ` gjl at gcc dot gnu.org
2015-06-26 20:03 ` jakub at gcc dot gnu.org
2015-06-26 20:33 ` jakub at gcc dot gnu.org
2015-06-26 21:18 ` pinskia at gcc dot gnu.org
2021-08-13  6:58 ` egallager at gcc dot gnu.org

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