public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5445] RISC-V: Fix vop_m overloaded C++ API name.
@ 2023-01-27 12:49 Kito Cheng
  0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2023-01-27 12:49 UTC (permalink / raw)
  To: gcc-cvs

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

commit r13-5445-gce34fa309e05e4c417fc4ff96e6ab9e8dd058836
Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
Date:   Fri Jan 20 10:20:29 2023 +0800

    RISC-V: Fix vop_m overloaded C++ API name.
    
    According to https://github.com/riscv-non-isa/rvv-intrinsic-doc/tree/master/
    For "vop_m" intrinsics, C++ overloaded API does not have "_m" suffix.
    
    gcc/ChangeLog:
    
            * config/riscv/riscv-vector-builtins-shapes.cc (struct loadstore_def):
            Remove _m suffix for "vop_m" C++ overloaded API name.

Diff:
---
 gcc/config/riscv/riscv-vector-builtins-shapes.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/config/riscv/riscv-vector-builtins-shapes.cc b/gcc/config/riscv/riscv-vector-builtins-shapes.cc
index 896704b827f..ef3a31555db 100644
--- a/gcc/config/riscv/riscv-vector-builtins-shapes.cc
+++ b/gcc/config/riscv/riscv-vector-builtins-shapes.cc
@@ -128,6 +128,10 @@ struct loadstore_def : public build_base
 	b.append_name (type_suffixes[instance.type.index].vector);
       }
 
+    /* According to rvv-intrinsic-doc, it does not add "_m" suffix
+       for vop_m C++ overloaded API.  */
+    if (overloaded_p && instance.pred == PRED_TYPE_m)
+      return b.finish_name ();
     b.append_name (predication_suffixes[instance.pred]);
     return b.finish_name ();
   }

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

only message in thread, other threads:[~2023-01-27 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 12:49 [gcc r13-5445] RISC-V: Fix vop_m overloaded C++ API name Kito Cheng

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