aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-12-15 21:10:00 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2008-12-15 21:10:00 +0000
commitdd021c27bfb25fa957ea4bcde302c5626d7da66b (patch)
tree65976546ac62d5947b366b72d1e16f2f8236b488 /gcc/config/mips
parent8739b9c795cbacd63cb314aa2b265b966ad6424a (diff)
downloadgcc-dd021c27bfb25fa957ea4bcde302c5626d7da66b.zip
gcc-dd021c27bfb25fa957ea4bcde302c5626d7da66b.tar.gz
gcc-dd021c27bfb25fa957ea4bcde302c5626d7da66b.tar.bz2
mips.md (move_doubleword_fpr<mode>): Use TARGET_FLOAT64 && !TARGET_64BIT to detect the mxhc1 case.
gcc/ * config/mips/mips.md (move_doubleword_fpr<mode>): Use TARGET_FLOAT64 && !TARGET_64BIT to detect the mxhc1 case. From-SVN: r142769
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/mips/mips.md b/gcc/config/mips/mips.md
index 1b26f02..5a06cdc 100644
--- a/gcc/config/mips/mips.md
+++ b/gcc/config/mips/mips.md
@@ -4521,8 +4521,8 @@
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 && reg_or_0_operand (high, <HALFMODE>mode))
- emit_insn (gen_mthc1<mode> (operands[0], high, operands[0]));
+ if (TARGET_FLOAT64 && !TARGET_64BIT)
+ emit_insn (gen_mthc1<mode> (operands[0], high, operands[0]));
else
emit_insn (gen_load_high<mode> (operands[0], high, operands[0]));
}
@@ -4531,7 +4531,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 && register_operand (high, <HALFMODE>mode))
+ if (TARGET_FLOAT64 && !TARGET_64BIT)
emit_insn (gen_mfhc1<mode> (high, operands[1]));
else
emit_insn (gen_store_word<mode> (high, operands[1], const1_rtx));