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

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


For historic reasons the .insn rxf pseudo-mnemonic operand order differs
from the field index order.  Document that.

gas/
	* doc/c-s390.texi (s390 Formats): Document RXF operand order.

gas/testsuite/
	* gas/s390/esa-operands.d (rxf): Add comment.
	* gas/s390/esa-operands.s (rxf): Likewise.
	* gas/s390/zarch-operands.d: Add test for .insn rxf.
	* gas/s390/zarch-operands.s: Likewise.

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

diff --git a/gas/doc/c-s390.texi b/gas/doc/c-s390.texi
index 3b47ba42886e..8ec063c2f53a 100644
--- a/gas/doc/c-s390.texi
+++ b/gas/doc/c-s390.texi
@@ -428,6 +428,7 @@ a @emph{Programming Note} of the Principles of Operation manual:
 @item RSE (@code{rse}): @code{R1,R3,D2(B2)}
 @item RSI (@code{rsi}): @code{R1,R3,RI2}
 @item RSY (@code{rsy}; not RSY-a/b): @code{R1,R3,D2(B2)}
+@item RXF (@code{rxf}): @code{R1,R3,D2(X2,B2)}
 @end itemize
 
 An instruction is two, four, or six bytes in length and must be aligned
diff --git a/gas/testsuite/gas/s390/esa-operands.d b/gas/testsuite/gas/s390/esa-operands.d
index ed280bb9d2f3..93daa4bf293f 100644
--- a/gas/testsuite/gas/s390/esa-operands.d
+++ b/gas/testsuite/gas/s390/esa-operands.d
@@ -27,6 +27,7 @@ Disassembly of section .text:
 .*:	58 13 40 02 [	 ]*l	%r1,2\(%r3,%r4\)
 # RXE
 .*:	ed 10 30 02 00 1a [	 ]*adb	%f1,2\(%r3\)
+# RXF
 .*:	ed 24 50 03 10 1e [	 ]*madb	%f1,%f2,3\(%r4,%r5\)
 .*:	b2 33 20 01 [	 ]*ssch	1\(%r2\)
 .*:	92 03 20 01 [	 ]*mvi	1\(%r2\),3
diff --git a/gas/testsuite/gas/s390/esa-operands.s b/gas/testsuite/gas/s390/esa-operands.s
index a47f83668a55..2101b019bb19 100644
--- a/gas/testsuite/gas/s390/esa-operands.s
+++ b/gas/testsuite/gas/s390/esa-operands.s
@@ -10,7 +10,7 @@ foo:
 	.insn rsi,0x84000000,%r1,%r2,test_rsi		# brxh %r1,%r2,test_rsi
 	.insn rx,0x58000000,%r1,2(%r3,%r4)		# l %r1,2(%r3,%r4)
 	.insn rxe,0xed000000001a,%f1,2(%r3)		# adb %f1,2(%r3)
-	.insn rxf,0xed000000001e,%f1,%f2,3(%r4,%r5)
+	.insn rxf,0xed000000001e,%f1,%f2,3(%r4,%r5)	# madb %f1,%f2,3(%r4,%r5)
 	.insn s,0xb2330000,1(%r2)
 	.insn si,0x92000000,1(%r2),3
 	.insn ss,0xd20000000000,1(2,%r3),4(%r5),6
diff --git a/gas/testsuite/gas/s390/zarch-operands.d b/gas/testsuite/gas/s390/zarch-operands.d
index 9d79e7c6802e..46a2bffa33e1 100644
--- a/gas/testsuite/gas/s390/zarch-operands.d
+++ b/gas/testsuite/gas/s390/zarch-operands.d
@@ -113,5 +113,7 @@ Disassembly of section .text:
 # RXE
 .*:	ed 13 20 de 00 25 [	 ]*lxd	%f1,222\(%r3,%r2\)
 .*:	e7 13 20 de 30 27 [	 ]*lcbb	%r1,222\(%r3,%r2\),3
+# RXF
+.*:	ed 34 20 de 10 3e [	 ]*mad	%f1,%f3,222\(%r4,%r2\)
 .*:	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 881fb2c11874..3c1f2c62139a 100644
--- a/gas/testsuite/gas/s390/zarch-operands.s
+++ b/gas/testsuite/gas/s390/zarch-operands.s
@@ -56,4 +56,5 @@ foo:
 	.insn rx_b,0x47000000,1,222(%r3,%r2)		# bc 1,222(%r3,%r2)
 	.insn rxe,0xed0000000025,%f1,222(%r3,%r2)	# lxd %f1,222(%r3,%r2)
 	.insn rxe,0xe70000000027,%r1,222(%r3,%r2),3	# lcbb %r1,222(%r3,%r2),3
+	.insn rxf,0xed000000003e,%f1,%f3,222(%r4,%r2)	# mad %f1,%f3,222(%r4,%r2)
 	.insn ssf,0xc80000000000,1(%r2),3(%r4),%r5
-- 
2.53.0



More information about the Binutils mailing list