public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1914] RISC-V: Fix one typo for reduc expand GET_MODE_CLASS
@ 2023-06-18 23:41 Pan Li
  0 siblings, 0 replies; only message in thread
From: Pan Li @ 2023-06-18 23:41 UTC (permalink / raw)
  To: gcc-cvs

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

commit r14-1914-gfcf4e50f852e6c3e7ce777573b282c26b85a7d77
Author: Pan Li <pan2.li@intel.com>
Date:   Mon Jun 19 07:36:41 2023 +0800

    RISC-V: Fix one typo for reduc expand GET_MODE_CLASS
    
    This patch would like to fix one typo when GET_MODE_CLASS by mode.
    
    Signed-off-by: Pan Li <pan2.li@intel.com>
    
    gcc/ChangeLog:
    
            * config/riscv/riscv-vector-builtins-bases.cc: Fix one typo.

Diff:
---
 gcc/config/riscv/riscv-vector-builtins-bases.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/riscv/riscv-vector-builtins-bases.cc b/gcc/config/riscv/riscv-vector-builtins-bases.cc
index 53bd0ed2534..b11b544291a 100644
--- a/gcc/config/riscv/riscv-vector-builtins-bases.cc
+++ b/gcc/config/riscv/riscv-vector-builtins-bases.cc
@@ -1400,7 +1400,7 @@ public:
     machine_mode ret_mode = e.ret_mode ();
 
     /* TODO: we will use ret_mode after all types of PR110265 are addressed.  */
-    if ((GET_MODE_CLASS (MODE) == MODE_VECTOR_FLOAT)
+    if ((GET_MODE_CLASS (mode) == MODE_VECTOR_FLOAT)
        || GET_MODE_INNER (mode) != GET_MODE_INNER (ret_mode))
       return e.use_exact_insn (
 	code_for_pred_reduc (CODE, e.vector_mode (), e.vector_mode ()));

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

only message in thread, other threads:[~2023-06-18 23:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-18 23:41 [gcc r14-1914] RISC-V: Fix one typo for reduc expand GET_MODE_CLASS Pan Li

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