testsuite: RISC-V: Add '.option norvc' to ensure consistent results.

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.
This commit is contained in:
Jiawei
2025-09-11 11:16:40 +08:00
committed by Nelson Chu
parent d0f2ab89ab
commit cabae1c1c8
5 changed files with 5 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
target:
.option norvc
nop

View File

@@ -1,4 +1,5 @@
.option norelax
.option norvc
.align 4
nop
nop

View File

@@ -1,3 +1,4 @@
.option norvc
.text
byte:
nop

View File

@@ -1,2 +1,3 @@
target:
.option norvc
nop

View File

@@ -1,3 +1,4 @@
.option norvc
.section .tbss,"awT",@nobits
.global sg1
sg1: