[RFC PATCH v2 1/2] RISC-V: __builtin_riscv_pause for all environment

Jeff Law jeffreyalaw@gmail.com
Mon Aug 21 14:02:08 GMT 2023



On 8/16/23 02:33, Philipp Tomsich wrote:

> 
> Could we use the underlying 'fence' instruction (unless the assembler
> rejects the specific form that is needed) instead of the hex-insn?
> Should this also check HAVE_AS_MARCH_ZIHINTPAUSE (which must then also
> be added to configure.ac)?
It seems reasonable from an encoding standpoint.   But I haven't been 
able to convince the assembler to encode a 0 into the pred/succ fields.

Jeff


More information about the Gcc-patches mailing list