Re: [PATCH 2/2] RISC-V: Implement locality for __builtin_prefetch

2023-07-14 Thread Kito Cheng via Gcc-patches
Corresponding PR on c-api-doc under discussion, so defer this until that settles down :) https://github.com/riscv-non-isa/riscv-c-api-doc/pull/46 On Thu, Jul 13, 2023 at 1:40 PM Monk Chiang via Gcc-patches wrote: > > gcc/ChangeLog: > > * config/riscv/riscv.cc (riscv_print_operand

[PATCH 2/2] RISC-V: Implement locality for __builtin_prefetch

2023-07-12 Thread Monk Chiang via Gcc-patches
gcc/ChangeLog: * config/riscv/riscv.cc (riscv_print_operand): Add 'N' for print a non-temporal locality hints instruction. * config/riscv/riscv.md (prefetch): Add NTLH instruction for prefetch.r and prefetch.w. gcc/testsuite/ChangeLog: