On 7/12/24 5:35 AM, Monk Chiang wrote:
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.
This is fine for the trunk. It looks like you have commit access, so go ahead and commit when it's convenient for you.

Thanks for your patience,
jeff

Reply via email to