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

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).