public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "amodra at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/52107] IBM 128bit long double constant loaded inefficiently
Date: Fri, 03 Feb 2012 23:18:00 -0000	[thread overview]
Message-ID: <bug-52107-4-zlSm60XY3l@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52107-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52107

--- Comment #2 from Alan Modra <amodra at gmail dot com> 2012-02-03 23:17:36 UTC ---
.tc generates an 8-byte word in both cases, so no space saved in the toc.  This
bit of code in rs6000_emit_move does the loads in DImode, then cse1 shows the
toc load being converted to a load immediate and it all goes downhill from
there.

  /* 128-bit constant floating-point values on Darwin should really be
     loaded as two parts.  */
  if (!TARGET_IEEEQUAD && TARGET_LONG_DOUBLE_128
      && mode == TFmode && GET_CODE (operands[1]) == CONST_DOUBLE)
    {
      /* DImode is used, not DFmode, because simplify_gen_subreg doesn't
     know how to get a DFmode SUBREG of a TFmode.  */


  parent reply	other threads:[~2012-02-03 23:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 13:05 [Bug target/52107] New: " amodra at gmail dot com
2012-02-03 13:34 ` [Bug target/52107] " rguenth at gcc dot gnu.org
2012-02-03 23:18 ` amodra at gmail dot com [this message]
2012-02-03 23:21 ` amodra at gmail dot com
2012-02-06 22:09 ` amodra at gcc dot gnu.org
2012-02-06 23:42 ` amodra at gcc dot gnu.org
2012-02-06 23:43 ` amodra at gmail dot com
2012-02-06 23:46 ` amodra at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-52107-4-zlSm60XY3l@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).