public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/64093] New: [5 Regression] ICE error: unrecognizable insn with -mcpu=cell
@ 2014-11-27 11:05 trippels at gcc dot gnu.org
2014-11-27 11:23 ` [Bug target/64093] " trippels at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-11-27 11:05 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 4223 bytes --]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64093
Bug ID: 64093
Summary: [5 Regression] ICE error: unrecognizable insn with
-mcpu=cell
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
Trying to build an allyesconfig Linux kernel with -O2:
trippels@gcc2-power8 linux-3.17.2 % cat prom.i
int a;
void
fn1 ()
{
for (;;)
if (a & 1 || a & 8)
continue;
}
trippels@gcc2-power8 linux-3.17.2 % gcc -c -O2 -mcpu=cell prom.i
prom.i: In function âfn1â:
prom.i:8:1: error: unrecognizable insn:
}
^
(insn 7 6 8 2 (parallel [
(set (reg:SI 159)
(and:SI (reg:SI 160)
(const_int 9 [0x9])))
(clobber (scratch:CC))
]) -1
(nil))
prom.i:8:1: internal compiler error: in extract_insn, at recog.c:2327
0x1073f7ab _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
../../gcc/gcc/rtl-error.c:110
0x1073f817 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
../../gcc/gcc/rtl-error.c:118
0x10705f87 extract_insn(rtx_insn*)
../../gcc/gcc/recog.c:2327
0x1048312b instantiate_virtual_regs_in_insn
../../gcc/gcc/function.c:1582
0x1048312b instantiate_virtual_regs
../../gcc/gcc/function.c:1950
0x1048312b execute
../../gcc/gcc/function.c:1999
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-468751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Nov 27 11:17:40 2014
Return-Path: <gcc-bugs-return-468751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 7346 invoked by alias); 27 Nov 2014 11:17:40 -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 7311 invoked by uid 48); 27 Nov 2014 11:17:36 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64093] [5 Regression] ICE error: unrecognizable insn with -mcpuÎll
Date: Thu, 27 Nov 2014 11:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64093-4-gAAHpMFo1a@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64093-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64093-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-11/txt/msg03223.txt.bz2
Content-length: 646
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd093
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Try this patch:
Index: rs6000.md
==================================================================--- rs6000.md (revision 218072)
+++ rs6000.md (working copy)
@@ -2644,7 +2644,8 @@ (define_expand "and<mode>3"
}
if (logical_const_operand (operands[2], <MODE>mode)
- && !any_mask_operand (operands[2], <MODE>mode))
+ && !any_mask_operand (operands[2], <MODE>mode)
+ && rs6000_gen_cell_microcode)
{
emit_insn (gen_and<mode>3_imm (operands[0], operands[1], operands[2]));
DONE;
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64093] [5 Regression] ICE error: unrecognizable insn with -mcpu=cell
2014-11-27 11:05 [Bug target/64093] New: [5 Regression] ICE error: unrecognizable insn with -mcpu=cell trippels at gcc dot gnu.org
@ 2014-11-27 11:23 ` trippels at gcc dot gnu.org
2014-11-27 11:35 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-11-27 11:23 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3071 bytes --]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64093
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Try this patch:
> Index: rs6000.md
> ===================================================================
> --- rs6000.md (revision 218072)
> +++ rs6000.md (working copy)
> @@ -2644,7 +2644,8 @@ (define_expand "and<mode>3"
> }
>
> if (logical_const_operand (operands[2], <MODE>mode)
> - && !any_mask_operand (operands[2], <MODE>mode))
> + && !any_mask_operand (operands[2], <MODE>mode)
> + && rs6000_gen_cell_microcode)
> {
> emit_insn (gen_and<mode>3_imm (operands[0], operands[1],
> operands[2]));
> DONE;
This fixes the problem. Thanks.
>From gcc-bugs-return-468754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Nov 27 11:25:12 2014
Return-Path: <gcc-bugs-return-468754-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13387 invoked by alias); 27 Nov 2014 11:25:11 -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 13352 invoked by uid 48); 27 Nov 2014 11:25:07 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/64093] [5 Regression] ICE error: unrecognizable insn with -mcpuÎll
Date: Thu, 27 Nov 2014 11:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64093-4-uYZvFlkLRc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64093-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64093-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-11/txt/msg03226.txt.bz2
Content-length: 498
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd093
--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Only to hit another issue:
arch/powerpc/mm/pgtable.c:208:1: error: unrecognizable insn:
}
^
(insn 53 52 54 6 (set (reg:DI 213 [ bits ])
(and:DI (reg/v:DI 180 [ entry ])
(const_int 900 [0x384])))
./arch/powerpc/include/asm/pgtable-ppc64.h:311 -1
(nil))
arch/powerpc/mm/pgtable.c:208:1: internal compiler error: in extract_insn, at
recog.c:2327
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64093] [5 Regression] ICE error: unrecognizable insn with -mcpu=cell
2014-11-27 11:05 [Bug target/64093] New: [5 Regression] ICE error: unrecognizable insn with -mcpu=cell trippels at gcc dot gnu.org
2014-11-27 11:23 ` [Bug target/64093] " trippels at gcc dot gnu.org
@ 2014-11-27 11:35 ` pinskia at gcc dot gnu.org
2014-11-27 17:10 ` segher at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-11-27 11:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64093
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-11-27
Target Milestone|--- |5.0
Ever confirmed|0 |1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #3)
> Only to hit another issue:
There are many missing checks for rs6000_gen_cell_microcode now. :(. I had
audit this code at one point and fixed all the issues but this was when I
submitted the patch for rs6000_gen_cell_microcode and nobody kept this working.
I don't enough about cell any more to do the work and really I don't have time
to do it either.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64093] [5 Regression] ICE error: unrecognizable insn with -mcpu=cell
2014-11-27 11:05 [Bug target/64093] New: [5 Regression] ICE error: unrecognizable insn with -mcpu=cell trippels at gcc dot gnu.org
2014-11-27 11:23 ` [Bug target/64093] " trippels at gcc dot gnu.org
2014-11-27 11:35 ` pinskia at gcc dot gnu.org
@ 2014-11-27 17:10 ` segher at gcc dot gnu.org
2014-11-28 16:26 ` segher at gcc dot gnu.org
2014-11-28 16:33 ` segher at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: segher at gcc dot gnu.org @ 2014-11-27 17:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64093
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |segher at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |segher at gcc dot gnu.org
--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to #c3)
That is because the patch in #c1 is incorrect.
Mine.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64093] [5 Regression] ICE error: unrecognizable insn with -mcpu=cell
2014-11-27 11:05 [Bug target/64093] New: [5 Regression] ICE error: unrecognizable insn with -mcpu=cell trippels at gcc dot gnu.org
` (2 preceding siblings ...)
2014-11-27 17:10 ` segher at gcc dot gnu.org
@ 2014-11-28 16:26 ` segher at gcc dot gnu.org
2014-11-28 16:33 ` segher at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: segher at gcc dot gnu.org @ 2014-11-28 16:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64093
--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Author: segher
Date: Fri Nov 28 16:25:33 2014
New Revision: 218164
URL: https://gcc.gnu.org/viewcvs?rev=218164&root=gcc&view=rev
Log:
PR target/64093
* config/rs6000/rs6000.md (and<mode>3): Don't generate
and<mode>3_imm unless rs6000_gen_cell_microcode is true.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.md
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/64093] [5 Regression] ICE error: unrecognizable insn with -mcpu=cell
2014-11-27 11:05 [Bug target/64093] New: [5 Regression] ICE error: unrecognizable insn with -mcpu=cell trippels at gcc dot gnu.org
` (3 preceding siblings ...)
2014-11-28 16:26 ` segher at gcc dot gnu.org
@ 2014-11-28 16:33 ` segher at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: segher at gcc dot gnu.org @ 2014-11-28 16:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64093
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-11-28 16:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-27 11:05 [Bug target/64093] New: [5 Regression] ICE error: unrecognizable insn with -mcpu=cell trippels at gcc dot gnu.org
2014-11-27 11:23 ` [Bug target/64093] " trippels at gcc dot gnu.org
2014-11-27 11:35 ` pinskia at gcc dot gnu.org
2014-11-27 17:10 ` segher at gcc dot gnu.org
2014-11-28 16:26 ` segher at gcc dot gnu.org
2014-11-28 16:33 ` segher 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).