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

Jiawei jiawei@iscas.ac.cn
Thu Sep 11 01:53:39 GMT 2025


In 2025/9/10 23:39, Peter Bergner wrote:
> 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.

Thanks for your suggestions, I will try this way.

BR,

Jiawei

>
> 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