]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
testsuite: RISC-V: Add '.option norvc' to ensure consistent results.
authorJiawei <jiawei@iscas.ac.cn>
Thu, 11 Sep 2025 03:16:40 +0000 (11:16 +0800)
committerNelson Chu <nelson@rivosinc.com>
Thu, 11 Sep 2025 04:03:43 +0000 (12:03 +0800)
Add `.option norvc` to several RISC-V tests to avoid compressed
instruction generation.  This ensures consistent disassembly and
alignment behavior regardless of assembler default options.

Discussion see:
https://patchwork.sourceware.org/project/binutils/patch/20250910120916.1103023-1-jiawei@iscas.ac.cn/

gas/ChangeLog:

* testsuite/gas/riscv/dis-partial-insn.s: Limit compressed.
* testsuite/gas/riscv/no-relax-align.s: Ditto.
* testsuite/gas/riscv/odd-padding.s: Ditto.
* testsuite/gas/riscv/t_insns.s: Ditto.
* testsuite/gas/riscv/tlsdesc.s: Ditto.

gas/testsuite/gas/riscv/dis-partial-insn.s
gas/testsuite/gas/riscv/no-relax-align.s
gas/testsuite/gas/riscv/odd-padding.s
gas/testsuite/gas/riscv/t_insns.s
gas/testsuite/gas/riscv/tlsdesc.s

index 99456883315ed914786d18cfc2623aa6fa99cc84..77453af59aaa372e0e5f8e813cc58946a806f075 100644 (file)
@@ -1,2 +1,3 @@
 target:
+       .option norvc
        nop
index 23b43e0a4cecc587959e35c7ce86b57cff3e3c06..a625d643b1f192274179dff5e8660955c5945d41 100644 (file)
@@ -1,4 +1,5 @@
        .option norelax
+       .option norvc
        .align 4
        nop
        nop
index 44f7de8b51430afb7e5da615e4f51226082485e9..a0120d280b1c864bdd8b180922e5fe1e8f769041 100644 (file)
@@ -1,3 +1,4 @@
+       .option norvc
        .text
 byte:
        nop
index 99456883315ed914786d18cfc2623aa6fa99cc84..77453af59aaa372e0e5f8e813cc58946a806f075 100644 (file)
@@ -1,2 +1,3 @@
 target:
+       .option norvc
        nop
index 15468d5f947af7f0c21bed7c733d39fed6d2fa7d..2d0aec0e5cb621b22e5365fa89fd08b2d3aa2548 100644 (file)
@@ -1,3 +1,4 @@
+       .option norvc
        .section        .tbss,"awT",@nobits
        .global sg1
 sg1: