[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:

[PATCH 1/2] RISC-V: Recognized zihintntl extensions

2023-07-12 Thread Monk Chiang via Gcc-patches
gcc/ChangeLog: * common/config/riscv/riscv-common.cc: (riscv_implied_info): Add zihintntl item. (riscv_ext_version_table): Ditto. (riscv_ext_flag_table): Ditto. * config/riscv/riscv-opts.h (MASK_ZIHINTNTL): New macro. (TAR