[EXT] Re: [PATCH] testsuites: Fix RISC-V tests with 'nop' instruction.
Nelson Chu
nelson@rivosinc.com
Thu Sep 11 02:33:57 GMT 2025
On Wed, Sep 10, 2025 at 11:39 PM Peter Bergner <bergner@tenstorrent.com>
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.
>
> 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?
>
I remember there is a new directive .option exact/noexact under community
discussion, it may be what you want ;)
Nelson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20250911/2ec620ad/attachment.htm>
More information about the Binutils
mailing list