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

Jiawei jiawei@iscas.ac.cn
Thu Sep 11 01:44:06 GMT 2025


Hi Jan,

Actually, the regression test will fail on these cases when you update 
your riscv-gnu-toolchain repo into the latest 
version(cfe9d78f8dc8dffc8ce371c46978b257ef2a5c35).

I think you are right, it's not a problem with NOP, it's just a problem 
for no-compressed instruction test now be compressed.


BR,

Jiawei


In 2025/9/10 20:59, Jan Beulich wrote:
> On 10.09.2025 14:09, Jiawei wrote:
>> This patch forces tests containing 'nop'(0x13) instructions to specify the
>> as parameter. The default as parameter is rv64gc will generation compressed
>> instruction 'c.nop'(0x1) and broken the result as expected.
> I don't follow this explanation. There's no breakage right now, and you also
> don't alter any of the test expectations. Was the 2nd sentence maybe intended
> to start "If the default gas setting is rv64gc ..."? (I.e. if an override of
> DEFAULT_RISCV_ARCH_WITH_EXT was in effect.) If so, is NOP really the only thing
> we would need to be concerned of?
>
> Jan



More information about the Binutils mailing list