This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, committed] Correct rs6000 dfp.md mode typos


The DFP nabs patterns included a typo using DFmode instead of the
appropriate DDmode or TDmode.  This patch corrects the mode.

David

        * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
        (nabstd2_fpr): Same.

Index: dfp.md
===================================================================
--- dfp.md      (revision 148620)
+++ dfp.md      (working copy)
@@ -180,7 +180,7 @@

 (define_insn "*nabsdd2_fpr"
   [(set (match_operand:DD 0 "gpc_reg_operand" "=f")
-       (neg:DD (abs:DD (match_operand:DF 1 "gpc_reg_operand" "f"))))]
+       (neg:DD (abs:DD (match_operand:DD 1 "gpc_reg_operand" "f"))))]
   "TARGET_HARD_FLOAT && TARGET_FPRS"
   "fnabs %0,%1"
   [(set_attr "type" "fp")])
@@ -511,7 +511,7 @@

 (define_insn "*nabstd2_fpr"
   [(set (match_operand:TD 0 "gpc_reg_operand" "=f")
-       (neg:TD (abs:TD (match_operand:DF 1 "gpc_reg_operand" "f"))))]
+       (neg:TD (abs:TD (match_operand:TD 1 "gpc_reg_operand" "f"))))]
   "TARGET_HARD_FLOAT && TARGET_FPRS"
   "fnabs %0,%1"
   [(set_attr "type" "fp")])


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]