public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "olegendo at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/54429] [SH] SImode values get ferried through FPUL and FP regs for -O0
Date: Tue, 13 Nov 2012 08:45:00 -0000	[thread overview]
Message-ID: <bug-54429-4-sYJU7KqxcM@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-54429-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #3 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-11-13 08:44:43 UTC ---
I've tested this:

Index: gcc/config/sh/sh.c
===================================================================
--- gcc/config/sh/sh.c    (revision 193423)
+++ gcc/config/sh/sh.c    (working copy)
@@ -12113,6 +12113,11 @@
   if (FP_REGISTER_P (regno) && mode == SFmode)
     return true;

+  if (FP_REGISTER_P (regno)
+      && !(GET_MODE_CLASS (mode) == MODE_FLOAT
+       || GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT))
+    return false;
+
   if (mode == V2SFmode)
     {
       if (((FP_REGISTER_P (regno) && (regno - FIRST_FP_REG) % 2 == 0)


on rev 193423.  There are a few failures on targets with HW FPU:

FAIL: gcc.c-torture/execute/20080502-1.c compilation
FAIL: gcc.c-torture/execute/ieee/copysign1.c compilation
FAIL: gcc.dg/builtins-32.c (internal compiler error)
FAIL: gcc.dg/builtins-50.c (internal compiler error)
FAIL: gcc.dg/pr48335-7.c (internal compiler error)

I'll check out the details.


  parent reply	other threads:[~2012-11-13  8:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-30 22:26 [Bug target/54429] New: " olegendo at gcc dot gnu.org
2012-08-31 10:59 ` [Bug target/54429] " kkojima at gcc dot gnu.org
2012-08-31 11:54 ` olegendo at gcc dot gnu.org
2012-11-13  8:45 ` olegendo at gcc dot gnu.org [this message]
2012-11-13 22:25 ` olegendo at gcc dot gnu.org
2012-11-14  9:45 ` olegendo at gcc dot gnu.org
2014-10-12 17:28 ` olegendo at gcc dot gnu.org
2014-12-27 11:41 ` olegendo at gcc dot gnu.org
2014-12-27 13:56 ` olegendo at gcc dot gnu.org

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-54429-4-sYJU7KqxcM@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).