Re: [PATCH] RISC-V: Add fault first load C/C++ support

2023-03-10 Thread Richard Sandiford via Gcc-patches
Bernhard Reutner-Fischer via Gcc-patches writes: > On 7 March 2023 07:21:23 CET, juzhe.zh...@rivai.ai wrote: >>From: Ju-Zhe Zhong >> > >>+class vleff : public function_base >>+{ >>+public: >>+ unsigned int call_properties (const function_instance &) const override >>+ { >>+return

Re: Re: [PATCH] RISC-V: Add fault first load C/C++ support

2023-03-08 Thread juzhe.zhong
Address comment and fix it in this V2 patch: https://gcc.gnu.org/pipermail/gcc-patches/2023-March/613608.html juzhe.zh...@rivai.ai From: Bernhard Reutner-Fischer Date: 2023-03-09 05:16 To: juzhe.zhong; gcc-patches CC: kito.cheng; Ju-Zhe Zhong Subject: Re: [PATCH] RISC-V: Add fault first load

Re: [PATCH] RISC-V: Add fault first load C/C++ support

2023-03-08 Thread Bernhard Reutner-Fischer via Gcc-patches
On 7 March 2023 07:21:23 CET, juzhe.zh...@rivai.ai wrote: >From: Ju-Zhe Zhong > >+class vleff : public function_base >+{ >+public: >+ unsigned int call_properties (const function_instance &) const override >+ { >+return CP_READ_MEMORY | CP_WRITE_CSR; >+ } >+ >+ gimple *fold

[PATCH] RISC-V: Add fault first load C/C++ support

2023-03-06 Thread juzhe . zhong
From: Ju-Zhe Zhong gcc/ChangeLog: * config/riscv/riscv-builtins.cc (riscv_gimple_fold_builtin): New function. * config/riscv/riscv-protos.h (riscv_gimple_fold_builtin): Ditto. (gimple_fold_builtin): Ditto. * config/riscv/riscv-vector-builtins-bases.cc (class