public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE
@ 2004-12-10 20:21 hjl at lucon dot org
2004-12-10 20:23 ` [Bug target/18932] " hjl at lucon dot org
` (8 more replies)
0 siblings, 9 replies; 11+ messages in thread
From: hjl at lucon dot org @ 2004-12-10 20:21 UTC (permalink / raw)
To: gcc-bugs
This patch
http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00701.html
causes a regression on i386.
--
Summary: [3.4 regression] -march=pentium4 -O2 causes ICE
Product: gcc
Version: 3.4.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: target
AssignedTo: rth at redhat dot com
ReportedBy: hjl at lucon dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4 regression] -march=pentium4 -O2 causes ICE
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
@ 2004-12-10 20:23 ` hjl at lucon dot org
2004-12-10 20:25 ` rth at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: hjl at lucon dot org @ 2004-12-10 20:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hjl at lucon dot org 2004-12-10 20:23 -------
Created an attachment (id=7721)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7721&action=view)
A testcase
I got
[hjl@gnu-10 tmp]$ /usr/gcc-3.4/bin/gcc -O2 -march=pentium4 -S ~/foo.c
/export/home/hjl/foo.c: In function `amd74xx_ide_dma_check':
/export/home/hjl/foo.c:16297: error: insn does not satisfy its constraints:
(insn 106 48 50 1 (parallel [
(set (reg:CCNO 17 flags)
(compare:CCNO (and:QI (reg/v:QI 4 si [orig:66 speed ] [66])
(const_int -16 [0xfffffff0]))
(const_int 0 [0x0])))
(set (reg/v:QI 4 si [orig:66 speed ] [66])
(and:QI (reg/v:QI 4 si [orig:66 speed ] [66])
(const_int -16 [0xfffffff0])))
]) 205 {*andqi_2} (nil)
(expr_list:REG_UNUSED (reg/v:QI 4 si [orig:66 speed ] [66])
(nil)))
/export/home/hjl/foo.c:16297: internal compiler error: in
copyprop_hardreg_forward_1, at regrename.c:1549
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4 regression] -march=pentium4 -O2 causes ICE
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
2004-12-10 20:23 ` [Bug target/18932] " hjl at lucon dot org
@ 2004-12-10 20:25 ` rth at gcc dot gnu dot org
2004-12-10 21:06 ` belyshev at lubercy dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-12-10 20:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-12-10 20:25 -------
Do not assign prs to people unless they request it. Assignment implies
actively working on the problem. Use cc for advisory.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|rth at redhat dot com |rth at gcc dot gnu dot org
Status|UNCONFIRMED |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4 regression] -march=pentium4 -O2 causes ICE
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
2004-12-10 20:23 ` [Bug target/18932] " hjl at lucon dot org
2004-12-10 20:25 ` rth at gcc dot gnu dot org
@ 2004-12-10 21:06 ` belyshev at lubercy dot com
2004-12-12 19:20 ` [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c belyshev at lubercy dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: belyshev at lubercy dot com @ 2004-12-10 21:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From belyshev at lubercy dot com 2004-12-10 21:06 -------
// small testcase:
int bar (int p, char c)
{
foo (p, c);
if (c & 0xF0)
return p;
}
--
What |Removed |Added
----------------------------------------------------------------------------
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
Known to fail| |3.4.4
Known to work| |3.4.3
Last reconfirmed|0000-00-00 00:00:00 |2004-12-10 21:06:02
date| |
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
` (2 preceding siblings ...)
2004-12-10 21:06 ` belyshev at lubercy dot com
@ 2004-12-12 19:20 ` belyshev at lubercy dot com
2004-12-12 20:57 ` cvs-commit at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: belyshev at lubercy dot com @ 2004-12-12 19:20 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1981 bytes --]
------- Additional Comments From belyshev at lubercy dot com 2004-12-12 19:20 -------
testcase for 4.0.0, use "-O2" to reproduce:
----------------------------------------------------------------------------------------
char m[2];
char o[2];
short i[2];
int t[2];
void foo ()
{
int c;
for (c = 0; c < 2; c++)
{
if (i[c & 0xff] & 4)
o[0] = 0;
else if (i[c & 0xff] & 128)
{
m[c] = t[c & 0xff];
o[c] = c;
}
if ((i[c & 0xff] & 136) || (i[c & 0xff] & 4))
o[0] = 0;
}
}
----------------------------------------------------------------------------------------
/usr/local/libexec/gcc/i686-pc-linux-gnu/4.0.0/cc1 -quiet tc-i386.c -O2
tc-i386.c: In function âfooâ:
tc-i386.c:25: error: insn does not satisfy its constraints:
(insn 166 96 98 5 (parallel [
(set (reg:CCNO 17 flags)
(compare:CCNO (and:QI (reg:QI 4 si [orig:107 D.1127 ] [107])
(const_int -120 [0xffffff88]))
(const_int 0 [0x0])))
(set (reg:QI 4 si [orig:107 D.1127 ] [107])
(and:QI (reg:QI 4 si [orig:107 D.1127 ] [107])
(const_int -120 [0xffffff88])))
]) 207 {*andqi_2} (nil)
(expr_list:REG_UNUSED (reg:QI 4 si [orig:107 D.1127 ] [107])
(nil)))
tc-i386.c:25: internal compiler error: in copyprop_hardreg_forward_1, at
regrename.c:1567
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.4.4 |3.4.4 4.0.0
Last reconfirmed|2004-12-10 21:06:02 |2004-12-12 19:20:28
date| |
Summary|[3.4 regression] - |[3.4/4.0 regression] ICE in
|march=pentium4 -O2 causes |copyprop_hardreg_forward_1,
|ICE |at regrename.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
` (3 preceding siblings ...)
2004-12-12 19:20 ` [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c belyshev at lubercy dot com
@ 2004-12-12 20:57 ` cvs-commit at gcc dot gnu dot org
2004-12-12 20:59 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-12 20:57 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-12 20:57 -------
Subject: Bug 18932
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: rth@gcc.gnu.org 2004-12-12 20:57:28
Modified files:
gcc : ChangeLog
gcc/config/i386: i386.md predicates.md
Log message:
PR target/18932
* config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
and compare_operator to propagate the input CC mode to the output.
* config/i386/predicates.md (compare_operator): New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.6792&r2=2.6793
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&r1=1.570&r2=1.571
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/predicates.md.diff?cvsroot=gcc&r1=1.6&r2=1.7
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
` (4 preceding siblings ...)
2004-12-12 20:57 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-12 20:59 ` cvs-commit at gcc dot gnu dot org
2004-12-12 21:00 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-12 20:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-12 20:59 -------
Subject: Bug 18932
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: rth@gcc.gnu.org 2004-12-12 20:59:24
Modified files:
gcc : ChangeLog
gcc/config/i386: i386-protos.h i386.c i386.h i386.md
Log message:
PR target/18932
* config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
and compare_operator to propagate the input CC mode to the output.
* config/i386/i386.c (compare_operator): New.
* config/i386/i386.h (PREDICATE_CODES): Add it.
* config/i386/i386-protos.h: Update.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.727&r2=2.2326.2.728
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386-protos.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.104.4.2&r2=1.104.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.635.2.15&r2=1.635.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.368.2.5&r2=1.368.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.502.2.9&r2=1.502.2.10
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
` (5 preceding siblings ...)
2004-12-12 20:59 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-12 21:00 ` cvs-commit at gcc dot gnu dot org
2004-12-12 21:07 ` rth at gcc dot gnu dot org
2004-12-17 15:32 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-12 21:00 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-12 21:00 -------
Subject: Bug 18932
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_3-branch
Changes by: rth@gcc.gnu.org 2004-12-12 21:00:49
Modified files:
gcc : ChangeLog
gcc/config/i386: i386-protos.h i386.c i386.h i386.md
Log message:
PR target/18932
* config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
and compare_operator to propagate the input CC mode to the output.
* config/i386/i386.c (flags_reg_operand, compare_operator): New.
* config/i386/i386.h (PREDICATE_CODES): Add them.
* config/i386/i386-protos.h: Update.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.1037&r2=1.16114.2.1038
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386-protos.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.86.2.2&r2=1.86.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.c.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.495.2.36&r2=1.495.2.37
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.h.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.309.2.11&r2=1.309.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/i386/i386.md.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.404.2.26&r2=1.404.2.27
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
` (6 preceding siblings ...)
2004-12-12 21:00 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-12 21:07 ` rth at gcc dot gnu dot org
2004-12-17 15:32 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-12-12 21:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From rth at gcc dot gnu dot org 2004-12-12 21:07 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|3.4.4 |3.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
` (7 preceding siblings ...)
2004-12-12 21:07 ` rth at gcc dot gnu dot org
@ 2004-12-17 15:32 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17 15:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-17 15:32 -------
*** Bug 19057 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |bero at arklinux dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c
[not found] <bug-18932-682@http.gcc.gnu.org/bugzilla/>
@ 2005-10-24 1:39 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-24 1:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2005-10-24 01:39 -------
*** Bug 19593 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |joel at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18932
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2005-10-24 1:39 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-10 20:21 [Bug target/18932] New: [3.4 regression] -march=pentium4 -O2 causes ICE hjl at lucon dot org
2004-12-10 20:23 ` [Bug target/18932] " hjl at lucon dot org
2004-12-10 20:25 ` rth at gcc dot gnu dot org
2004-12-10 21:06 ` belyshev at lubercy dot com
2004-12-12 19:20 ` [Bug target/18932] [3.4/4.0 regression] ICE in copyprop_hardreg_forward_1, at regrename.c belyshev at lubercy dot com
2004-12-12 20:57 ` cvs-commit at gcc dot gnu dot org
2004-12-12 20:59 ` cvs-commit at gcc dot gnu dot org
2004-12-12 21:00 ` cvs-commit at gcc dot gnu dot org
2004-12-12 21:07 ` rth at gcc dot gnu dot org
2004-12-17 15:32 ` pinskia at gcc dot gnu dot org
[not found] <bug-18932-682@http.gcc.gnu.org/bugzilla/>
2005-10-24 1:39 ` pinskia at gcc dot gnu dot 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).