public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/21850] New: misscompiling comparision from vector to integer
@ 2005-05-31 20:50 pinskia at gcc dot gnu dot org
2005-05-31 20:56 ` [Bug middle-end/21850] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-31 20:50 UTC (permalink / raw)
To: gcc-bugs
the following code is miscompiled:
extern void abort (void);
typedef int V2SI __attribute__ ((vector_size (8)));
int
main (void)
{
if (((int)(long long)(V2SI){ 2, 2 })!=2)
abort ();
}
Note this is now blocking my tree combiner to be regression free.
--
Summary: misscompiling comparision from vector to integer
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21850] misscompiling comparision from vector to integer
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
@ 2005-05-31 20:56 ` pinskia at gcc dot gnu dot org
2005-05-31 21:10 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-31 20:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-31 20:50 -------
This used to work right before the branch of 4.0.0.
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |15459
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21850] misscompiling comparision from vector to integer
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
2005-05-31 20:56 ` [Bug middle-end/21850] " pinskia at gcc dot gnu dot org
@ 2005-05-31 21:10 ` pinskia at gcc dot gnu dot org
2005-06-07 12:20 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-31 21:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-31 21:02 -------
The problem is that we are assuming TYPE_PRECISION of the vector is really the precision when it is in
fact the number of elements.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21850] misscompiling comparision from vector to integer
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
2005-05-31 20:56 ` [Bug middle-end/21850] " pinskia at gcc dot gnu dot org
2005-05-31 21:10 ` pinskia at gcc dot gnu dot org
@ 2005-06-07 12:20 ` jakub at gcc dot gnu dot org
2005-06-07 21:45 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-06-07 12:20 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-07 12:20:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21850] misscompiling comparision from vector to integer
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-06-07 12:20 ` jakub at gcc dot gnu dot org
@ 2005-06-07 21:45 ` cvs-commit at gcc dot gnu dot org
2005-06-09 14:45 ` [Bug middle-end/21850] [4.0 Regression] " pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-07 21:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-07 21:45 -------
Subject: Bug 21850
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: jakub@gcc.gnu.org 2005-06-07 21:45:08
Modified files:
gcc : ChangeLog tree.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.c-torture/execute: 20050607-1.c
Log message:
PR middle-end/21850
* tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
from vector types.
* gcc.c-torture/execute/20050607-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9074&r2=2.9075
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&r1=1.486&r2=1.487
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5608&r2=1.5609
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/20050607-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21850] [4.0 Regression] misscompiling comparision from vector to integer
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-06-07 21:45 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-09 14:45 ` pinskia at gcc dot gnu dot org
2005-06-16 23:20 ` cvs-commit at gcc dot gnu dot org
2005-06-17 0:35 ` giovannibajo at libero dot it
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-09 14:45 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.1.0
Last reconfirmed|2005-06-07 12:20:36 |2005-06-09 14:45:12
date| |
Summary|misscompiling comparision |[4.0 Regression]
|from vector to integer |misscompiling comparision
| |from vector to integer
Target Milestone|--- |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21850] [4.0 Regression] misscompiling comparision from vector to integer
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-06-09 14:45 ` [Bug middle-end/21850] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2005-06-16 23:20 ` cvs-commit at gcc dot gnu dot org
2005-06-17 0:35 ` giovannibajo at libero dot it
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-06-16 23:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-06-16 23:20 -------
Subject: Bug 21850
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: jakub@gcc.gnu.org 2005-06-16 23:19:59
Modified files:
gcc : ChangeLog tree.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.c-torture/execute: 20050607-1.c
Log message:
PR middle-end/21850
* tree.c (get_unwidened): Stop at NOP_EXPR/CONVERT_EXPR that convert
from vector types.
* gcc.c-torture/execute/20050607-1.c: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.288&r2=2.7592.2.289
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.466.4.3&r2=1.466.4.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.242&r2=1.5084.2.243
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/execute/20050607-1.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/21850] [4.0 Regression] misscompiling comparision from vector to integer
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
` (5 preceding siblings ...)
2005-06-16 23:20 ` cvs-commit at gcc dot gnu dot org
@ 2005-06-17 0:35 ` giovannibajo at libero dot it
6 siblings, 0 replies; 8+ messages in thread
From: giovannibajo at libero dot it @ 2005-06-17 0:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From giovannibajo at libero dot it 2005-06-17 00:35 -------
Fixed!
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.2 |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21850
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-06-17 0:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-31 20:50 [Bug middle-end/21850] New: misscompiling comparision from vector to integer pinskia at gcc dot gnu dot org
2005-05-31 20:56 ` [Bug middle-end/21850] " pinskia at gcc dot gnu dot org
2005-05-31 21:10 ` pinskia at gcc dot gnu dot org
2005-06-07 12:20 ` jakub at gcc dot gnu dot org
2005-06-07 21:45 ` cvs-commit at gcc dot gnu dot org
2005-06-09 14:45 ` [Bug middle-end/21850] [4.0 Regression] " pinskia at gcc dot gnu dot org
2005-06-16 23:20 ` cvs-commit at gcc dot gnu dot org
2005-06-17 0:35 ` giovannibajo at libero dot it
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).