public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-10088] rs6000: Small GCC10 change required for the lxvp built-ins backport
@ 2021-09-03  1:48 Peter Bergner
  0 siblings, 0 replies; only message in thread
From: Peter Bergner @ 2021-09-03  1:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:bdeb69555af9bbb2c56c595ac536275822c0aa74

commit r10-10088-gbdeb69555af9bbb2c56c595ac536275822c0aa74
Author: Peter Bergner <bergner@linux.ibm.com>
Date:   Thu Sep 2 15:13:17 2021 -0500

    rs6000: Small GCC10 change required for the lxvp built-ins backport
    
    2021-09-02  Peter Bergner  <bergner@linux.ibm.com>
    
    gcc/
            * config/rs6000/rs6000-call.c (mma_init_builtins): Test for
            MMA_BUILTIN_DISASSEMBLE_ACC and VSX_BUILTIN_DISASSEMBLE_PAIR.
            (rs6000_gimple_fold_mma_builtin): Likewise.

Diff:
---
 gcc/config/rs6000/rs6000-call.c | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-call.c b/gcc/config/rs6000/rs6000-call.c
index ec1b5966137..ee83b0b6896 100644
--- a/gcc/config/rs6000/rs6000-call.c
+++ b/gcc/config/rs6000/rs6000-call.c
@@ -10848,12 +10848,10 @@ rs6000_gimple_fold_mma_builtin (gimple_stmt_iterator *gsi)
   gimple *new_call;
   tree new_decl;
 
-  if (rs6000_builtin_info[fncode + 1].icode == CODE_FOR_nothing)
+  if (fncode == MMA_BUILTIN_DISASSEMBLE_ACC
+      || fncode == VSX_BUILTIN_DISASSEMBLE_PAIR)
     {
       /* This is an MMA disassemble built-in function.  */
-      gcc_assert (fncode == MMA_BUILTIN_DISASSEMBLE_ACC
-		  || fncode == VSX_BUILTIN_DISASSEMBLE_PAIR);
-
       push_gimplify_context (true);
       tree dst_ptr = gimple_call_arg (stmt, 0);
       tree src_ptr = gimple_call_arg (stmt, 1);
@@ -13216,12 +13214,11 @@ mma_init_builtins (void)
 	  gcc_assert (attr_args == insn_data[icode].n_operands - 1);
 	}
 
-      if (icode == CODE_FOR_nothing)
+      if (d->code == MMA_BUILTIN_DISASSEMBLE_ACC
+	  || d->code == VSX_BUILTIN_DISASSEMBLE_PAIR)
 	{
 	  /* This is a disassemble MMA built-in function.  */
-	  gcc_assert (attr_args == RS6000_BTC_BINARY
-		      && (d->code == MMA_BUILTIN_DISASSEMBLE_ACC
-			  || d->code == VSX_BUILTIN_DISASSEMBLE_PAIR));
+	  gcc_assert (attr_args == RS6000_BTC_BINARY);
 	  op[nopnds++] = build_pointer_type (void_type_node);
 	  if (attr & RS6000_BTC_QUAD)
 	    op[nopnds++] = build_pointer_type (vector_quad_type_node);


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

only message in thread, other threads:[~2021-09-03  1:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03  1:48 [gcc r10-10088] rs6000: Small GCC10 change required for the lxvp built-ins backport Peter Bergner

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