diff options
author | Monk Chiang <monk.chiang@sifive.com> | 2023-07-06 14:05:17 +0800 |
---|---|---|
committer | Monk Chiang <monk.chiang@sifive.com> | 2024-07-15 13:55:28 +0800 |
commit | bf26413fc4081dfd18b915580b35bdb71481327e (patch) | |
tree | 5a952ef7daf7e2485e2be047425c831608b0731f /gcc/tree-vect-loop.cc | |
parent | 8b1492012e5a11e9400e30ee4ae9195c08a2a81e (diff) | |
download | gcc-bf26413fc4081dfd18b915580b35bdb71481327e.zip gcc-bf26413fc4081dfd18b915580b35bdb71481327e.tar.gz gcc-bf26413fc4081dfd18b915580b35bdb71481327e.tar.bz2 |
RISC-V: Implement locality for __builtin_prefetch
The patch add the Zihintntl instructions in the prefetch pattern.
Zicbop has prefetch instructions. Zihintntl has NTL instructions.
Insert NTL instructions before prefetch instruction, if target
has Zihintntl extension.
gcc/ChangeLog:
* config/riscv/riscv.cc (riscv_print_operand): Add 'L' letter
to print zihintntl instructions string.
* config/riscv/riscv.md (prefetch): Add zihintntl instructions.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/prefetch-zicbop.c: New test.
* gcc.target/riscv/prefetch-zihintntl.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions