This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Correct rs6000 dfp.md mode typos
- From: David Edelsohn <dje dot gcc at gmail dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 17 Jun 2009 14:20:42 -0400
- Subject: [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")])