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... -- Xi Ruoyao <xry...@xry111.site> School of Aerospace Science and Technology, Xidian University