On Tue, 08 Nov 2022 20:43:20 PST (-0800), pins...@gmail.com wrote:
On Tue, Nov 8, 2022 at 7:16 PM Palmer Dabbelt <pal...@rivosinc.com> wrote:
On Tue, 08 Nov 2022 18:57:26 PST (-0800), jeffreya...@gmail.com wrote:
>
> On 11/8/22 12:54, Philipp Tomsich wrote:
>> The BSWAP operation is not handled in rtx_costs. Add it.
>>
>> With Zbb, BSWAP for XLEN is a single instruction; for smaller modes,
>> it will expand into two.
>>
>> gcc/ChangeLog:
>>
>> * config/riscv/riscv.c (rtx_costs): Add BSWAP.
>
> OK.
It's riscv_rtx_costs.
(I don't usually read ChangeLog entries that closely, just happened to
stumble on it when poking around.)
Using contrib/git-commit-mklog.py can help here to make sure you
always get the correct format for the changelog and it does a decent
job of figuring out function names too.
You can also use contrib/gcc-git-customization.sh to install it such
that you can use it when doing git commits.
After invoking that inside the GCC git; you can just do "git
gcc-commit-mklog ...." Where .... would be what you normally put for
"git commit" (but as if in the toplevel directory).
Thanks, that's awesome.