[PATCH v2 19/47] s390: Add test for .insn pseudo-mnemonic ris

Jens Remus jremus@linux.ibm.com
Fri Nov 6 15:57:09 GMT 2026


gas/testsuite/
	* gas/s390/zarch-operands.d: Add test for .insn ris.
	* gas/s390/zarch-operands.s: Likewise.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
---
 gas/testsuite/gas/s390/zarch-operands.d | 2 ++
 gas/testsuite/gas/s390/zarch-operands.s | 1 +
 2 files changed, 3 insertions(+)

diff --git a/gas/testsuite/gas/s390/zarch-operands.d b/gas/testsuite/gas/s390/zarch-operands.d
index 8027d5cbf2a0..998c8f65e566 100644
--- a/gas/testsuite/gas/s390/zarch-operands.d
+++ b/gas/testsuite/gas/s390/zarch-operands.d
@@ -53,6 +53,8 @@ Disassembly of section .text:
  *([\da-f]+):	c0 e5 00 00 00 00 [	 ]*brasl	%r14,\1 <foo\+0x\1>
 # RIL-c
  *([\da-f]+):	c0 f4 00 00 00 00 [	 ]*jg	\1 <foo\+0x\1>
+# RIS
+.*:	ec 13 41 bc fe fe [	 ]*cib	%r1,-2,3,444\(%r4\)
 .*:	eb 12 40 03 00 0d [	 ]*sllg	%r1,%r2,3\(%r4\)
 .*:	c8 50 20 01 40 03 [	 ]*mvcos	1\(%r2\),3\(%r4\),%r5
 #?.*:	07 07 [	 ]*nopr	%r7
diff --git a/gas/testsuite/gas/s390/zarch-operands.s b/gas/testsuite/gas/s390/zarch-operands.s
index 51e194c56ccd..1e66e38949b8 100644
--- a/gas/testsuite/gas/s390/zarch-operands.s
+++ b/gas/testsuite/gas/s390/zarch-operands.s
@@ -21,5 +21,6 @@ foo:
 	.insn ril_a,0xc20900000000,%r1,-1		# afi %r1,-1
 	.insn ril_b,0xc00500000000,%r14,.		# brasl %r14,.
 	.insn ril_c,0xc00400000000,0b1111,.		# brcl 0b1111,.
+	.insn ris,0xec00000000fe,%r1,-2,3,444(%r4)	# cib %r1,-2,3,444(%r4)
 	.insn rse,0xeb000000000d,%r1,%r2,3(%r4)
 	.insn ssf,0xc80000000000,1(%r2),3(%r4),%r5
-- 
2.53.0



More information about the Binutils mailing list