diff options
author | Ju-Zhe Zhong <juzhe.zhong@rivai.ai> | 2022-12-20 22:58:47 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2022-12-23 13:41:26 +0800 |
commit | 55d65ad4fd808c7806d770f03c26fa38672a4e28 (patch) | |
tree | 615b1056786819d38c4b6d7d01557c2446f79627 /gcc/config | |
parent | b47b33c799bd4874a4c81fb71708ff1c3dd150ff (diff) | |
download | gcc-55d65ad4fd808c7806d770f03c26fa38672a4e28.zip gcc-55d65ad4fd808c7806d770f03c26fa38672a4e28.tar.gz gcc-55d65ad4fd808c7806d770f03c26fa38672a4e28.tar.bz2 |
RISC-V: Update vsetvl/vsetvlmax intrinsics to the latest api name.
gcc/ChangeLog:
* config/riscv/riscv-vector-builtins-shapes.cc (struct vsetvl_def): Add
"__riscv_" prefix.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/base/vsetvl-1.c: Add "__riscv_" prefix.
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/riscv/riscv-vector-builtins-shapes.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/riscv/riscv-vector-builtins-shapes.cc b/gcc/config/riscv/riscv-vector-builtins-shapes.cc index 24fc1c0..bb2ee87 100644 --- a/gcc/config/riscv/riscv-vector-builtins-shapes.cc +++ b/gcc/config/riscv/riscv-vector-builtins-shapes.cc @@ -93,6 +93,7 @@ struct vsetvl_def : public build_base /* vsetvl* instruction doesn't have C++ overloaded functions. */ if (overloaded_p) return nullptr; + b.append_name ("__riscv_"); b.append_name (instance.base_name); b.append_name (type_suffixes[instance.type.index].vsetvl); return b.finish_name (); |