* [Bug target/64300] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c
2014-12-13 18:41 [Bug target/64300] New: s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c jan.kratochvil at redhat dot com
@ 2014-12-14 12:42 ` kkojima at gcc dot gnu.org
2014-12-15 8:58 ` [Bug rtl-optimization/64300] [5 Regression] " rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-12-14 12:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300
Kazumoto Kojima <kkojima at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kkojima at gcc dot gnu.org
--- Comment #1 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
I get the same ICE on my local sh-lra branch after r218688. I've looked
at what is going on the test case in c#0 with the cross s390 compiler.
It seems that the change at r218688
+ if (GET_MODE (*curr_id->operand_loc[nop]) != VOIDmode
+ && ! hard_reg_set_empty_p (this_alternative_set)
+ && ! HARD_REGNO_MODE_OK (ira_class_hard_regs
+ [this_alternative][0],
+ GET_MODE (*curr_id->operand_loc[nop])))
doesn't work as intended for some targets. These lines are to check
whether a requested mode value can be held by the registers in
this_alternative class or not. In the problematic case, gdb shows
that GET_MODE (*curr_id->operand_loc[nop]) is DImode and this_alternative
is GENERAL_REGS. ira_class_hard_regs[this_alternative] is
{1, 2, 3, 4, 5, 0, 11, 10, 9, 8, 7, 6, 0 <repeats 26 times>}
which is a set of regno for GENERAL_REGS in the preferred allocation order.
Then ira_class_hard_regs[this_alternative][0] is 1 and HARD_REGNO_MODE_OK
(1, DImode) is false. I guess that s390 uses a register pair for DImode
in this case and 1 is bad as the starting regno for DImode. Is it right?
SH uses the similar allocation order of which the first regno isn't match
to the register pair.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c
2014-12-13 18:41 [Bug target/64300] New: s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c jan.kratochvil at redhat dot com
2014-12-14 12:42 ` [Bug target/64300] " kkojima at gcc dot gnu.org
@ 2014-12-15 8:58 ` rguenth at gcc dot gnu.org
2014-12-15 20:24 ` vmakarov at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-12-15 8:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ra
CC| |vmakarov at gcc dot gnu.org
Component|target |rtl-optimization
Target Milestone|--- |5.0
Summary|s390x, ICE, unable to |[5 Regression] s390x, ICE,
|generate reloads, in |unable to generate reloads,
|curr_insn_transform, at |in curr_insn_transform, at
|lra-constraints.c |lra-constraints.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c
2014-12-13 18:41 [Bug target/64300] New: s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c jan.kratochvil at redhat dot com
2014-12-14 12:42 ` [Bug target/64300] " kkojima at gcc dot gnu.org
2014-12-15 8:58 ` [Bug rtl-optimization/64300] [5 Regression] " rguenth at gcc dot gnu.org
@ 2014-12-15 20:24 ` vmakarov at gcc dot gnu.org
2014-12-16 0:07 ` kkojima at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: vmakarov at gcc dot gnu.org @ 2014-12-15 20:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300
--- Comment #2 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to Kazumoto Kojima from comment #1)
> I get the same ICE on my local sh-lra branch after r218688. I've looked
> at what is going on the test case in c#0 with the cross s390 compiler.
> It seems that the change at r218688
>
> + if (GET_MODE (*curr_id->operand_loc[nop]) != VOIDmode
> + && ! hard_reg_set_empty_p (this_alternative_set)
> + && ! HARD_REGNO_MODE_OK (ira_class_hard_regs
> + [this_alternative][0],
> + GET_MODE (*curr_id->operand_loc[nop])))
>
> doesn't work as intended for some targets. These lines are to check
> whether a requested mode value can be held by the registers in
> this_alternative class or not. In the problematic case, gdb shows
> that GET_MODE (*curr_id->operand_loc[nop]) is DImode and this_alternative
> is GENERAL_REGS. ira_class_hard_regs[this_alternative] is
> {1, 2, 3, 4, 5, 0, 11, 10, 9, 8, 7, 6, 0 <repeats 26 times>}
> which is a set of regno for GENERAL_REGS in the preferred allocation order.
> Then ira_class_hard_regs[this_alternative][0] is 1 and HARD_REGNO_MODE_OK
> (1, DImode) is false. I guess that s390 uses a register pair for DImode
> in this case and 1 is bad as the starting regno for DImode. Is it right?
> SH uses the similar allocation order of which the first regno isn't match
> to the register pair.
Thanks for reporting. I've just committed a patch focusing on the same
problem. Could you check that the patch solves the problem.
>From gcc-bugs-return-470811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 15 20:25:47 2014
Return-Path: <gcc-bugs-return-470811-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12250 invoked by alias); 15 Dec 2014 20:25:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 12216 invoked by uid 48); 15 Dec 2014 20:25:43 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/64316] [5 Regression] ICE in simplify_const_unary_operation after r218503
Date: Mon, 15 Dec 2014 20:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-64316-4-J1Ivo7TxA6@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64316-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64316-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-12/txt/msg01818.txt.bz2
Content-length: 422
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd316
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c
2014-12-13 18:41 [Bug target/64300] New: s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c jan.kratochvil at redhat dot com
` (2 preceding siblings ...)
2014-12-15 20:24 ` vmakarov at gcc dot gnu.org
@ 2014-12-16 0:07 ` kkojima at gcc dot gnu.org
2015-01-13 10:16 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: kkojima at gcc dot gnu.org @ 2014-12-16 0:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300
--- Comment #3 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
(In reply to Vladimir Makarov from comment #2)
> Thanks for reporting. I've just committed a patch focusing on the same
> problem. Could you check that the patch solves the problem.
It fixes the ICE for the given test case on s390 and the similar
ICEs on my local sh-lra branch. Thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c
2014-12-13 18:41 [Bug target/64300] New: s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c jan.kratochvil at redhat dot com
` (3 preceding siblings ...)
2014-12-16 0:07 ` kkojima at gcc dot gnu.org
@ 2015-01-13 10:16 ` rguenth at gcc dot gnu.org
2015-01-14 23:38 ` kkojima at gcc dot gnu.org
2015-01-15 7:51 ` jan.kratochvil at redhat dot com
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-01-13 10:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c
2014-12-13 18:41 [Bug target/64300] New: s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c jan.kratochvil at redhat dot com
` (4 preceding siblings ...)
2015-01-13 10:16 ` rguenth at gcc dot gnu.org
@ 2015-01-14 23:38 ` kkojima at gcc dot gnu.org
2015-01-15 7:51 ` jan.kratochvil at redhat dot com
6 siblings, 0 replies; 8+ messages in thread
From: kkojima at gcc dot gnu.org @ 2015-01-14 23:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300
--- Comment #4 from Kazumoto Kojima <kkojima at gcc dot gnu.org> ---
I think this has been addressed with r218760 by Makarov. Can we
close this as resolved?
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug rtl-optimization/64300] [5 Regression] s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c
2014-12-13 18:41 [Bug target/64300] New: s390x, ICE, unable to generate reloads, in curr_insn_transform, at lra-constraints.c jan.kratochvil at redhat dot com
` (5 preceding siblings ...)
2015-01-14 23:38 ` kkojima at gcc dot gnu.org
@ 2015-01-15 7:51 ` jan.kratochvil at redhat dot com
6 siblings, 0 replies; 8+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-01-15 7:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64300
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
libgcc2.i from Comment 0 builds for me now, thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread