[EXT] Re: [PATCH] testsuites: Fix RISC-V tests with 'nop' instruction.

Peter Bergner bergner@tenstorrent.com
Wed Sep 10 15:39:34 GMT 2025


On 9/10/25 9:44 AM, Nelson Chu wrote:
> Does the .option norvc directives work for those testcase?

That should work.



>>     If so, is NOP really the only thing
>>     we would need to be concerned of?
> 
> 
> Well...  Yeah probably more need to be concerned.

I had to use ".option norvc" for the libffi risc-v static trampoline
support [1] so that the "jr t2" in the commit wouldn't be automatically
converted to c.jr, so yeah we have to be concerned by more than just
nop.

I'll also note gas and LLVM's assembler don't always agree when to convert
an instruction to the compressed form when it is possible.  Maybe different
defaults within the assemblers?


Peter


[1] https://github.com/libffi/libffi/pull/933/commits/0a0897a3ff6deb5fd2afc1b995a7aa515c60dd66



More information about the Binutils mailing list