[binutils-gdb] s390: Add test for .insn pseudo-mnemonic rxf
Jens Remus
jremus@sourceware.org
Tue Nov 10 16:50:30 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4b57041d8008de7963492243b34bbc21aa612a66
commit 4b57041d8008de7963492243b34bbc21aa612a66
Author: Jens Remus <jremus@linux.ibm.com>
Date: Tue Nov 10 17:46:03 2026 +0100
s390: Add test for .insn pseudo-mnemonic rxf
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>
Diff:
---
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 3b47ba42886..8ec063c2f53 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 ed280bb9d2f..93daa4bf293 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 a47f83668a5..2101b019bb1 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 9d79e7c6802..46a2bffa33e 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 881fb2c1187..3c1f2c62139 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
More information about the Binutils-cvs
mailing list