diff mbox

[committed] , Fix typo in gcc/config/rs6000/rs6000.md

Message ID 20110207203953.GA14009@hungry-tiger.westford.ibm.com
State New
Headers show

Commit Message

Michael Meissner Feb. 7, 2011, 8:39 p.m. UTC
Since I committed the rs6000 -mrecip support last June, there has been a
harmless typo in the source.  I had spelled RS6000_RECIP_HAVE_RSQRTE_P as
RS6000_RECIP_HAVE_RSQRT_P.  The build would note that RS6000_RECIP_HAVE_RSQRT_P
was not defined, and generate a call to the unknown function.  However, this
warning would not stop a make bootstrap.  The linker would dutifully enter a
call to RS6000_RECIP_HAVE_RSQRT_P to be filled in later, but since the
gen_rsqrt* functions were never called, the typo was never noticed.  Andreas
Tobler prompted me to look into it, and I fixed it as being obvious.  I did do
a bootstrap build before checking it in.

2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>

	PR target/47636
	* config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
	for the condition.
diff mbox

Patch

Index: gcc/config/rs6000/rs6000.md
===================================================================
--- gcc/config/rs6000/rs6000.md	(revision 169888)
+++ gcc/config/rs6000/rs6000.md	(working copy)
@@ -5638,7 +5638,7 @@  (define_split
 (define_expand "rsqrt<mode>2"
   [(match_operand:RECIPF 0 "gpc_reg_operand" "")
    (match_operand:RECIPF 1 "gpc_reg_operand" "")]
-  "RS6000_RECIP_HAVE_RSQRT_P (<MODE>mode)"
+  "RS6000_RECIP_HAVE_RSQRTE_P (<MODE>mode)"
 {
   rs6000_emit_swrsqrt (operands[0], operands[1]);
   DONE;