在 2022/11/15 下午5:17, Xi Ruoyao 写道:
On Sat, 2022-11-12 at 17:45 +0800, Xi Ruoyao via Gcc-patches wrote:
void prefetch(char *ptr, int off)
{
         return __builtin_prefetch(ptr + off);
}

It's compiled to "preldx 0,$r4,$r5".  I don't think it's correct
because
according to the doc, rk should contains several bit-fields instead of
an offset.
Hi Lulu,

Considering we are in stage 3 now and we can still push patches which
have been reviewed (in the first week of stage 3), I guess we can add
preld for GCC 13 and try preldx in the next development cycle?

BTW if preldx behaves exactly as how the manual says, I think it's not
possible to invoke it correctly in GNU C unless using inline assembly...

Well, I also want to add preld and instant load optimization support in this release.

I will send patch in the next two days:-)


Reply via email to