[binutils-gdb] s390: Correct mode and minimum CPU level of .insn pseudo-mnemonics
Jens Remus
jremus@sourceware.org
Tue Nov 10 16:47:56 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1ecbbe464156d415201a7258615e9a35cd0230f9
commit 1ecbbe464156d415201a7258615e9a35cd0230f9
Author: Jens Remus <jremus@linux.ibm.com>
Date: Tue Nov 10 17:46:01 2026 +0100
s390: Correct mode and minimum CPU level of .insn pseudo-mnemonics
The mode and minimum architecture/CPU level of the .insn pseudo-
mnemonics rie, ril, rilu, ris, rrs, sil, siy, ssf, vri, vrr, vrs, vrv,
vrx, and vsi did not match the instructions using the respective
instruction format:
- RIE: IBM z900 introduced instructions using this format (e.g. brxhg)
that are available in z/Architecture mode only.
- RIL: IBM z900 introduced instructions using this format (e.g. brasl)
that are available in ESA/390 and z/Architecture mode.
- RILU (non-standard; same layout as RIL-a): IBM z9-109 introduced
instructions using this layout (e.g. alfi) that are available in
z/Architecture mode only.
- RIS, RRS, SIL: IBM z10 introduced these formats that are available
in z/Architecture mode only.
- SIY: IBM z990 introduced instructions using this format (e.g. niy)
that are available in z/Architecture mode only.
- SSF: IBM z9-109 introduced instructions using this format (e.g.
mvcos) that are available in z/Architecture mode only.
- VRI, VRR, VRS, VRV, VRX: IBM z13 introduced these formats that are
available in z/Architecture mode only.
- VSI: IBM z14 introduced instructions using this format (e.g. vlrl)
that are available in z/Architecture mode only.
Note that the assembler does not evaluate or enforce the specified
mode and minimum architecture/CPU level for .insn pseudo-mnemonics.
Therefore this has no functional impact.
opcodes/
* s390-opc.c (s390_opformats): Correct mode and minimum CPU
level of .insn rie, ril, rilu, ris, rrs, sil, siy, ssf, vri,
vrr, vrs, vrv, vrx, and vsi.
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
Diff:
---
opcodes/s390-opc.c | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/opcodes/s390-opc.c b/opcodes/s390-opc.c
index 4b33dc80930..3db40878046 100644
--- a/opcodes/s390-opc.c
+++ b/opcodes/s390-opc.c
@@ -783,14 +783,14 @@ const struct s390_opcode s390_opformats[] =
/*NAME, OPCODE, MASK, INSTR, MODE,CPU,FLAG, DESCRIPTION*/
{ "e", OP8(0x00LL), MASK_E, INSTR_E, 3, 0, 256, NULL },
{ "ri", OP8(0x00LL), MASK_RI_RI, INSTR_RI_RI, 3, 0, 256, NULL },
- { "rie", OP8(0x00LL), MASK_RIE_RRP, INSTR_RIE_RRP, 3, 0, 256, NULL },
- { "ril", OP8(0x00LL), MASK_RIL_RP, INSTR_RIL_RP, 3, 0, 256, NULL },
- { "rilu", OP8(0x00LL), MASK_RIL_RU, INSTR_RIL_RU, 3, 0, 256, NULL },
- { "ris", OP8(0x00LL), MASK_RIS_RURDI, INSTR_RIS_RURDI, 3, 6, 256, NULL },
+ { "rie", OP8(0x00LL), MASK_RIE_RRP, INSTR_RIE_RRP, 2, 2, 256, NULL },
+ { "ril", OP8(0x00LL), MASK_RIL_RP, INSTR_RIL_RP, 3, 2, 256, NULL },
+ { "rilu", OP8(0x00LL), MASK_RIL_RU, INSTR_RIL_RU, 2, 4, 256, NULL },
+ { "ris", OP8(0x00LL), MASK_RIS_RURDI, INSTR_RIS_RURDI, 2, 6, 256, NULL },
{ "rr", OP8(0x00LL), MASK_RR_RR, INSTR_RR_RR, 3, 0, 256, NULL },
{ "rre", OP8(0x00LL), MASK_RRE_RR, INSTR_RRE_RR, 3, 0, 256, NULL },
{ "rrf", OP8(0x00LL), MASK_RRF_RURR, INSTR_RRF_RURR, 3, 0, 256, NULL },
- { "rrs", OP8(0x00LL), MASK_RRS_RRRDU, INSTR_RRS_RRRDU, 3, 6, 256, NULL },
+ { "rrs", OP8(0x00LL), MASK_RRS_RRRDU, INSTR_RRS_RRRDU, 2, 6, 256, NULL },
{ "rs", OP8(0x00LL), MASK_RS_RRRD, INSTR_RS_RRRD, 3, 0, 256, NULL },
{ "rse", OP8(0x00LL), MASK_RSE_RRRD, INSTR_RSE_RRRD, 3, 0, 256, NULL },
{ "rsi", OP8(0x00LL), MASK_RSI_RRP, INSTR_RSI_RRP, 3, 0, 256, NULL },
@@ -801,17 +801,17 @@ const struct s390_opcode s390_opformats[] =
{ "rxy", OP8(0x00LL), MASK_RXY_RRRD, INSTR_RXY_RRRD, 3, 3, 256, NULL },
{ "s", OP8(0x00LL), MASK_S_RD, INSTR_S_RD, 3, 0, 256, NULL },
{ "si", OP8(0x00LL), MASK_SI_URD, INSTR_SI_URD, 3, 0, 256, NULL },
- { "sil", OP8(0x00LL), MASK_SIL_RDI, INSTR_SIL_RDI, 3, 6, 256, NULL },
- { "siy", OP8(0x00LL), MASK_SIY_URD, INSTR_SIY_URD, 3, 3, 256, NULL },
+ { "sil", OP8(0x00LL), MASK_SIL_RDI, INSTR_SIL_RDI, 2, 6, 256, NULL },
+ { "siy", OP8(0x00LL), MASK_SIY_URD, INSTR_SIY_URD, 2, 3, 256, NULL },
{ "ss", OP8(0x00LL), MASK_SS_RRRDRD, INSTR_SS_RRRDRD, 3, 0, 256, NULL },
{ "sse", OP8(0x00LL), MASK_SSE_RDRD, INSTR_SSE_RDRD, 3, 0, 256, NULL },
- { "ssf", OP8(0x00LL), MASK_SSF_RRDRD, INSTR_SSF_RRDRD, 3, 0, 256, NULL },
- { "vri", OP8(0x00LL), MASK_VRI_VVUUU, INSTR_VRI_VVUUU, 3, 9, 256, NULL },
- { "vrr", OP8(0x00LL), MASK_VRR_VVV0UUU, INSTR_VRR_VVV0UUU, 3, 9, 256, NULL },
- { "vrs", OP8(0x00LL), MASK_VRS_RVRDU, INSTR_VRS_RVRDU, 3, 9, 256, NULL },
- { "vrv", OP8(0x00LL), MASK_VRV_VVXRDU, INSTR_VRV_VVXRDU, 3, 9, 256, NULL },
- { "vrx", OP8(0x00LL), MASK_VRX_VRRDU, INSTR_VRX_VRRDU, 3, 9, 256, NULL },
- { "vsi", OP8(0x00LL), MASK_VSI_URDV, INSTR_VSI_URDV, 3, 10, 256, NULL },
+ { "ssf", OP8(0x00LL), MASK_SSF_RRDRD, INSTR_SSF_RRDRD, 2, 4, 256, NULL },
+ { "vri", OP8(0x00LL), MASK_VRI_VVUUU, INSTR_VRI_VVUUU, 2, 9, 256, NULL },
+ { "vrr", OP8(0x00LL), MASK_VRR_VVV0UUU, INSTR_VRR_VVV0UUU, 2, 9, 256, NULL },
+ { "vrs", OP8(0x00LL), MASK_VRS_RVRDU, INSTR_VRS_RVRDU, 2, 9, 256, NULL },
+ { "vrv", OP8(0x00LL), MASK_VRV_VVXRDU, INSTR_VRV_VVXRDU, 2, 9, 256, NULL },
+ { "vrx", OP8(0x00LL), MASK_VRX_VRRDU, INSTR_VRX_VRRDU, 2, 9, 256, NULL },
+ { "vsi", OP8(0x00LL), MASK_VSI_URDV, INSTR_VSI_URDV, 2, 10, 256, NULL },
};
const int s390_num_opformats =
More information about the Binutils-cvs
mailing list