public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5776] rs6000: Fix use of wrong enum for built-in function code
@ 2021-12-03 17:56 William Schmidt
  0 siblings, 0 replies; only message in thread
From: William Schmidt @ 2021-12-03 17:56 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:987baa7444a96ac769ba520cfa4f5a64ee647103

commit r12-5776-g987baa7444a96ac769ba520cfa4f5a64ee647103
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date:   Thu Dec 2 16:29:12 2021 -0600

    rs6000: Fix use of wrong enum for built-in function code
    
    I discovered this bug while working on patches to remove the old built-ins
    infrastructure.  I missed a spot in converting from the rs6000_builtins enum to
    the rs6000_gen_builtins_enum.  This fixes it.  The fix is technically not right
    if new_builtins_are_enabled were to be set to zero, but we're not going to do
    that anymore, and the remnants of that code will be removed shortly.
    
    2021-12-02  Bill Schmidt  <wschmidt@linux.ibm.com>
    
    gcc/
            * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Fix builtin
            identifiers.

Diff:
---
 gcc/config/rs6000/rs6000.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 34089743759..2d40da25f56 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -22745,7 +22745,7 @@ rs6000_builtin_reciprocal (tree fndecl)
 {
   switch (DECL_MD_FUNCTION_CODE (fndecl))
     {
-    case VSX_BUILTIN_XVSQRTDP:
+    case RS6000_BIF_XVSQRTDP:
       if (!RS6000_RECIP_AUTO_RSQRTE_P (V2DFmode))
 	return NULL_TREE;
 
@@ -22753,7 +22753,7 @@ rs6000_builtin_reciprocal (tree fndecl)
 	return rs6000_builtin_decls_x[RS6000_BIF_RSQRT_2DF];
       return rs6000_builtin_decls[VSX_BUILTIN_RSQRT_2DF];
 
-    case VSX_BUILTIN_XVSQRTSP:
+    case RS6000_BIF_XVSQRTSP:
       if (!RS6000_RECIP_AUTO_RSQRTE_P (V4SFmode))
 	return NULL_TREE;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-03 17:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-03 17:56 [gcc r12-5776] rs6000: Fix use of wrong enum for built-in function code William Schmidt

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).