public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/37362] [4.4 Regression] Bootstrap broken on mipsisa64r2-linux-gcc
Date: Wed, 05 Nov 2008 10:05:00 -0000	[thread overview]
Message-ID: <20081105100430.311.qmail@sourceware.org> (raw)
In-Reply-To: <bug-37362-16661@http.gcc.gnu.org/bugzilla/>



------- Comment #3 from ubizjak at gmail dot com  2008-11-05 10:04 -------
I guess this issue can be fixed by following (untested) trivial patch:

--cut here--
Index: mips.md
===================================================================
--- mips.md     (revision 141602)
+++ mips.md     (working copy)
@@ -4508,7 +4508,7 @@
       rtx low = mips_subword (operands[1], 0);
       rtx high = mips_subword (operands[1], 1);
       emit_insn (gen_load_low<mode> (operands[0], low));
-      if (ISA_HAS_MXHC1)
+      if (TARGET_HARD_FLOAT && ISA_HAS_MXHC1)
        emit_insn (gen_mthc1<mode> (operands[0], high, operands[0]));
       else
        emit_insn (gen_load_high<mode> (operands[0], high, operands[0]));
@@ -4518,7 +4518,7 @@
       rtx low = mips_subword (operands[0], 0);
       rtx high = mips_subword (operands[0], 1);
       emit_insn (gen_store_word<mode> (low, operands[1], const0_rtx));
-      if (ISA_HAS_MXHC1)
+      if (TARGET_HARD_FLOAT && ISA_HAS_MXHC1)
        emit_insn (gen_mfhc1<mode> (high, operands[1]));
       else
        emit_insn (gen_store_word<mode> (high, operands[1], const1_rtx));
--cut here--

Nebu, can you bootstrap and regression test this patch on your target?


-- 


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


  parent reply	other threads:[~2008-11-05 10:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04  1:13 [Bug target/37362] New: " g0dsowncountry at yahoo dot com
2008-09-04  1:16 ` [Bug target/37362] " pinskia at gcc dot gnu dot org
2008-09-05 20:48 ` g0dsowncountry at yahoo dot com
2008-10-22  3:07 ` mmitchel at gcc dot gnu dot org
2008-11-05  8:41 ` jakub at gcc dot gnu dot org
2008-11-05 10:05 ` ubizjak at gmail dot com [this message]
2008-11-17 21:40 ` g0dsowncountry at yahoo dot com
2008-11-18  0:12 ` ubizjak at gmail dot com
2008-11-18  1:32 ` g0dsowncountry at yahoo dot com
2008-11-18  8:10 ` ubizjak at gmail dot com
2008-11-18 18:53 ` g0dsowncountry at yahoo dot com
2008-11-18 22:02 ` uros at gcc dot gnu dot org
2008-11-18 22:08 ` ubizjak 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=20081105100430.311.qmail@sourceware.org \
    --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).