[binutils-gdb] s390: Add test for .insn pseudo-mnemonic e

Jens Remus jremus@sourceware.org
Tue Nov 10 16:48:47 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6d40795d5867fcab1818536292f31a9ec7ccc59e

commit 6d40795d5867fcab1818536292f31a9ec7ccc59e
Author: Jens Remus <jremus@linux.ibm.com>
Date:   Tue Nov 10 17:46:02 2026 +0100

    s390: Add test for .insn pseudo-mnemonic e
    
    While at it add comments to ESA/390 .insn pseudo-mnemonic e test.
    
    gas/testsuite/
            * gas/s390/esa-operands.d (e): Add comment.
            * gas/s390/esa-operands.s (e): Likewise.
            * gas/s390/zarch-operands.d: Add test for .insn e.
            * gas/s390/zarch-operands.s: Likewise.
    
    Signed-off-by: Jens Remus <jremus@linux.ibm.com>

Diff:
---
 gas/testsuite/gas/s390/esa-operands.d   | 1 +
 gas/testsuite/gas/s390/esa-operands.s   | 2 +-
 gas/testsuite/gas/s390/zarch-operands.d | 4 +++-
 gas/testsuite/gas/s390/zarch-operands.s | 1 +
 4 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gas/testsuite/gas/s390/esa-operands.d b/gas/testsuite/gas/s390/esa-operands.d
index 9de6a345e39..2c4f6f6e90d 100644
--- a/gas/testsuite/gas/s390/esa-operands.d
+++ b/gas/testsuite/gas/s390/esa-operands.d
@@ -6,6 +6,7 @@
 Disassembly of section .text:
 
 .* <foo>:
+# E
 .*:	01 01 [	 ]*pr
 .*:	a7 1a 80 01 [	 ]*ahi	%r1,-32767
 .*:	18 12 [	 ]*lr	%r1,%r2
diff --git a/gas/testsuite/gas/s390/esa-operands.s b/gas/testsuite/gas/s390/esa-operands.s
index 9f030e835f7..a0efe857c1c 100644
--- a/gas/testsuite/gas/s390/esa-operands.s
+++ b/gas/testsuite/gas/s390/esa-operands.s
@@ -1,6 +1,6 @@
 .text
 foo:
-	.insn e,0x0101
+	.insn e,0x0101					# pr
 	.insn ri,0xa70a0000,%r1,-32767
 	.insn rr,0x1800,%r1,%r2
 	.insn rre,0xb25e0000,%r1,%r2
diff --git a/gas/testsuite/gas/s390/zarch-operands.d b/gas/testsuite/gas/s390/zarch-operands.d
index 483781269d0..1f8d2177eac 100644
--- a/gas/testsuite/gas/s390/zarch-operands.d
+++ b/gas/testsuite/gas/s390/zarch-operands.d
@@ -6,7 +6,9 @@
 Disassembly of section .text:
 
 .* <foo>:
- *([\da-f]+):	ec 12 00 00 00 45 [	 ]*brxlg	%r1,%r2,\1 <foo>
+# E
+.*:	01 01 [	 ]*pr
+ *([\da-f]+):	ec 12 00 00 00 45 [	 ]*brxlg	%r1,%r2,\1 <foo\+0x\1>
 .*: R_390_PC16DBL	test_rie\+0x2
  *([\da-f]+):	c0 e5 00 00 00 00 [	 ]*brasl	%r14,\1 <foo\+0x\1>
 .*: R_390_PC32DBL	test_ril\+0x2
diff --git a/gas/testsuite/gas/s390/zarch-operands.s b/gas/testsuite/gas/s390/zarch-operands.s
index 00b1ec7d4b7..3817036313a 100644
--- a/gas/testsuite/gas/s390/zarch-operands.s
+++ b/gas/testsuite/gas/s390/zarch-operands.s
@@ -1,5 +1,6 @@
 .text
 foo:
+	.insn e,0x0101					# pr
 	.insn rie,0xec0000000045,%r1,%r2,test_rie
 	.insn ril,0xc00500000000,%r14,test_ril
 	.insn rse,0xeb000000000d,%r1,%r2,3(%r4)


More information about the Binutils-cvs mailing list