https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110096

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Peter Dimov from comment #5)
> This works for the specific case of ARM, even though I don't find it
> substantially better than just using `asm("yield")`, but the benefit of
> having a portable intrinsic for this functionality is that as such
> instructions are added to targets and GCC gains support of them (as has
> happened with ARM), code would automatically take advantage of them, without
> having to acquire new ifdefs for each supported target.

There is no benifit in having an intrinsic that is generic here really. ACLE
defines the ones for ARM. Intel has a definition of their own intrinsics too
(which gcc does follow too for __pause/_mm_pause but I notice you used the
builtin directly for GCC for some reason).

Reply via email to