Re: [RFC] RISC-V: Add profile supports.

2022-11-07 Thread Palmer Dabbelt
On Thu, 03 Nov 2022 12:11:31 PDT (-0700), christoph.muell...@vrull.eu wrote: On Wed, Nov 2, 2022 at 7:12 PM Palmer Dabbelt wrote: On Wed, 02 Nov 2022 10:19:15 PDT (-0700), gcc-patches@gcc.gnu.org wrote: > Could you add some test cases? Also documentation, and ideally some sort of spec for wha

Re: [RFC] RISC-V: Add profile supports.

2022-11-03 Thread Christoph Müllner
On Wed, Nov 2, 2022 at 7:12 PM Palmer Dabbelt wrote: > > On Wed, 02 Nov 2022 10:19:15 PDT (-0700), gcc-patches@gcc.gnu.org wrote: > > Could you add some test cases? > > Also documentation, and ideally some sort of spec for what this should > do so we can maintain compatibility with LLVM as well as

Re: [RFC] RISC-V: Add profile supports.

2022-11-02 Thread Palmer Dabbelt
On Wed, 02 Nov 2022 10:19:15 PDT (-0700), gcc-patches@gcc.gnu.org wrote: Could you add some test cases? Also documentation, and ideally some sort of spec for what this should do so we can maintain compatibility with LLVM as well as we can. IIUC this also allows for profiles in the arch funct

Re: [RFC] RISC-V: Add profile supports.

2022-11-02 Thread Kito Cheng via Gcc-patches
Could you add some test cases? --- Parsing logic is kind of too adhoc, I would prefer using something like the following code to prevent magic pointer arithmetic like p+6: something like this: Table of all profile names = {"RVA20U64", riscv_profile::RVA20U64, ...} const char *rva20u64[] = {"m"