public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/16364] New: IA-64 long double/union argument causes ICE
@ 2004-07-05 2:12 wilson at gcc dot gnu dot org
2004-07-05 2:14 ` [Bug target/16364] " wilson at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-07-05 2:12 UTC (permalink / raw)
To: gcc-bugs
A testcase that passes an argument consisting of a union with a single long
double field gets an ICE. The union has size 16 and mode TImode. The ABI says
that this is an HFA which must be passed in an FP register. The FP regs can
hold at most XFmode. So we end up with a TImode move into/out of an FP reg
which generates an unrecognizable insn.
Defining MEMBER_TYPE_FORCES_BLK does not help. We don't get an abort, but we
end up with block moves into/out of the FP regs which use DImode, and hence
require two FP regs which is wrong. The union fits in one FP reg as XFmode, and
requires an XFmode load/store instruction to move it between FP regs and memory.
--
Summary: IA-64 long double/union argument causes ICE
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: wilson at gcc dot gnu dot org
ReportedBy: wilson at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: ia64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16364
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16364] IA-64 long double/union argument causes ICE
2004-07-05 2:12 [Bug target/16364] New: IA-64 long double/union argument causes ICE wilson at gcc dot gnu dot org
@ 2004-07-05 2:14 ` wilson at gcc dot gnu dot org
2004-07-09 23:10 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-07-05 2:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2004-07-05 02:14 -------
Created an attachment (id=6687)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6687&action=view)
long double/union argument testcase
Compiling with -O gives an ICE for an unrecognizable insn.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16364
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16364] IA-64 long double/union argument causes ICE
2004-07-05 2:12 [Bug target/16364] New: IA-64 long double/union argument causes ICE wilson at gcc dot gnu dot org
2004-07-05 2:14 ` [Bug target/16364] " wilson at gcc dot gnu dot org
@ 2004-07-09 23:10 ` cvs-commit at gcc dot gnu dot org
2004-07-09 23:14 ` wilson at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-09 23:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-07-09 23:10 -------
Subject: Bug 16364
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: wilson@gcc.gnu.org 2004-07-09 23:10:26
Modified files:
gcc : ChangeLog
gcc/config/ia64: ia64.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/gcc.c-torture/compile: 20040709-1.c
Log message:
Fix for IA-64 union/long double ICE.
PR target/16364
* config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
do return a parallel if hfa_mode == XFmode and mode == TImode.
* gcc.c-torture/compile/20040709-1.c: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.4435&r2=2.4436
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/ia64/ia64.c.diff?cvsroot=gcc&r1=1.299&r2=1.300
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.3973&r2=1.3974
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.c-torture/compile/20040709-1.c.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16364
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16364] IA-64 long double/union argument causes ICE
2004-07-05 2:12 [Bug target/16364] New: IA-64 long double/union argument causes ICE wilson at gcc dot gnu dot org
2004-07-05 2:14 ` [Bug target/16364] " wilson at gcc dot gnu dot org
2004-07-09 23:10 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-09 23:14 ` wilson at gcc dot gnu dot org
2004-07-09 23:15 ` wilson at gcc dot gnu dot org
2004-07-10 0:24 ` [Bug target/16364] [3.5 Regression] " pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-07-09 23:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2004-07-09 23:14 -------
Mine.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-07-09 23:14:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16364
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16364] IA-64 long double/union argument causes ICE
2004-07-05 2:12 [Bug target/16364] New: IA-64 long double/union argument causes ICE wilson at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-07-09 23:14 ` wilson at gcc dot gnu dot org
@ 2004-07-09 23:15 ` wilson at gcc dot gnu dot org
2004-07-10 0:24 ` [Bug target/16364] [3.5 Regression] " pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: wilson at gcc dot gnu dot org @ 2004-07-09 23:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From wilson at gcc dot gnu dot org 2004-07-09 23:15 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16364
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/16364] [3.5 Regression] IA-64 long double/union argument causes ICE
2004-07-05 2:12 [Bug target/16364] New: IA-64 long double/union argument causes ICE wilson at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-07-09 23:15 ` wilson at gcc dot gnu dot org
@ 2004-07-10 0:24 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-10 0:24 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Summary|IA-64 long double/union |[3.5 Regression] IA-64 long
|argument causes ICE |double/union argument causes
| |ICE
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16364
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-07-10 0:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-05 2:12 [Bug target/16364] New: IA-64 long double/union argument causes ICE wilson at gcc dot gnu dot org
2004-07-05 2:14 ` [Bug target/16364] " wilson at gcc dot gnu dot org
2004-07-09 23:10 ` cvs-commit at gcc dot gnu dot org
2004-07-09 23:14 ` wilson at gcc dot gnu dot org
2004-07-09 23:15 ` wilson at gcc dot gnu dot org
2004-07-10 0:24 ` [Bug target/16364] [3.5 Regression] " 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).