Re: [PATCH] RISC-V: Fix register class subset checks for CLASS_MAX_NREGS

2021-11-03 Thread Maciej W. Rozycki
On Wed, 3 Nov 2021, Kito Cheng wrote: > LGTM, My first impression of this patch is also confusing about the > ordering of arguments for reg_class_subset_p, but after I double > checked that with gdb and read the comment above the > reg_class_subset_p, I think this change is right. Applied now, t

Re: [PATCH] RISC-V: Fix register class subset checks for CLASS_MAX_NREGS

2021-11-02 Thread Kito Cheng via Gcc-patches
Hi Maciej: LGTM, My first impression of this patch is also confusing about the ordering of arguments for reg_class_subset_p, but after I double checked that with gdb and read the comment above the reg_class_subset_p, I think this change is right. Thanks! On Tue, Nov 2, 2021 at 11:17 PM Maciej W

[PATCH] RISC-V: Fix register class subset checks for CLASS_MAX_NREGS

2021-11-02 Thread Maciej W. Rozycki
Fix the register class subset checks in the determination of the maximum number of consecutive registers needed to hold a value of a given mode. The number depends on whether a register is a general-purpose or a floating-point register, so check whether the register class requested is a subse