[PATCH v2 12/47] s390: Add test for .insn pseudo-mnemonic e
Jens Remus
jremus@linux.ibm.com
Fri Nov 6 15:57:02 GMT 2026
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>
---
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 9de6a345e392..2c4f6f6e90d2 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 9f030e835f75..a0efe857c1c4 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 483781269d0d..1f8d2177eac2 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 00b1ec7d4b7f..3817036313a3 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)
--
2.53.0
More information about the Binutils
mailing list