Re: [PATCH V4 2/3] RISC-V:Cache Management Operation instructions

2022-05-26 Thread Kito Cheng via Gcc-patches
Hi Simon: Good catch, those cache operations should take an address operand. On Thu, May 26, 2022 at 7:58 PM Simon Cook wrote: > > Hi, > > I've just tried using these builtins now these have landed in trunk, and > I have a question about the cbo builtins. > > Looking at the code being generate

Re: [PATCH V4 2/3] RISC-V:Cache Management Operation instructions

2022-05-26 Thread Simon Cook
Hi, I've just tried using these builtins now these have landed in trunk, and I have a question about the cbo builtins. Looking at the code being generated it looks like these builtins return an int and take no arguments, but reading the instructions these should instead take an int and retur

[PATCH V4 2/3] RISC-V:Cache Management Operation instructions

2022-05-09 Thread shiyulong
From: yulong This commit adds cbo.clea,cbo.flush,cbo.inval,cbo.zero,prefetch.i,prefetch.r and prefetch.w instructions. diff with the previous version: We use unspec_volatile instead of unspec for those cache operations. We use UNSPECV instead of UNSPEC and move them to unspecv. gcc/ChangeLog: