From patchwork Wed Sep 30 08:18:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Remus X-Patchwork-Id: 144984 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D2CB54BB3B97 for ; Wed, 30 Sep 2026 08:28:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2CB54BB3B97 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=ja2UH9cv X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id C5F864BB1C36 for ; Wed, 30 Sep 2026 08:18:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C5F864BB1C36 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C5F864BB1C36 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790756333; cv=none; b=w7AWuyqCxU5TW2lmrtRwEcn867bXimjtqXVJJpN/eoA7gRej+Z7dF/VGlR8Cl/bx4IbnYCrgVCvPu99WMOI8+7MTPT7/Yq3RFPYCZuXM60OoP9+rdJleRYQxNSMJ+fS29HNBZfS7ltr6i6VVHwbLv/n1P72HZZEOs6y4ENUP8o0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1790756333; c=relaxed/simple; bh=jYgQmdafjDfhLKnb9vnkU3r3vnJCHJ7bM2Qg3pudFj8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=bngZPXtrMfzO1as4NE++zvyH9jB9Q6LbC+2F1zk37b+ixmuP07NQx8YiNKuPiglexb7M+f5KoDUmIqHs3No7gZ4auuelbAo85iazB5MQRi466xoW8FEpBEsZLKFUJI5sQ881vP5oNjw4p2JW7taBmo9nhEcQXwgLAf5qn70sYR8= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=ja2UH9cv DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5F864BB1C36 Received: from pps.filterd (m0356517.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68U7bIkq2374461 for ; Wed, 30 Sep 2026 08:18:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=pp1; bh=/i3p9Xxss8QERl8Gi bfcDrfCGmcpL8W8aCbYBWoYRpk=; b=ja2UH9cv5DJWumtB2IJaca9Cf8+zfp65K lH26+PM1bDeoEq9ti58HPocY4ac7OM8tIFauY0ZC+VPRWAYVPdyYM+YOZ/0l1HmJ S5eRes4l2ZZw9P2MobzHlJsFJrFaWZUk0H111SLbSIlqtovZHH3Ama239LCEqnC2 jVgdHekTwTax8FCSlORtZRHgnC+DF/1WddgsvzqImZiPwAkpE799IKvbLovH8UNt KApVX/jKToI40yHSj0XOQ8TMz2N6hQVlYAY845KBRGlNiBPgj+5d/N9G2siLwQx9 AfxGg3l+IJpRzDXw/6kdMc9blkwjXP63Yx4qcGSoY/BgETTQnDzzQ== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4gx5s5bqpa-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 30 Sep 2026 08:18:51 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 68U7lW9i3145105 for ; Wed, 30 Sep 2026 08:18:50 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4gxsvhngay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 30 Sep 2026 08:18:50 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (smtpav02.fra02v.mail.ibm.com [10.20.54.101]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 68U8IhCQ41091426 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Sep 2026 08:18:43 GMT Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E4B702004F; Wed, 30 Sep 2026 08:18:41 +0000 (GMT) Received: from smtpav02.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C162E20043; Wed, 30 Sep 2026 08:18:41 +0000 (GMT) Received: from tuxmaker.lnxne.boe (unknown [9.87.85.9]) by smtpav02.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 30 Sep 2026 08:18:41 +0000 (GMT) From: Jens Remus To: binutils@sourceware.org, Andreas Krebbel Cc: Jens Remus , Dominik Steenken Subject: [PATCH 15/20] s390: Rename insn format RRF_F0FF to RRD_F0FF Date: Wed, 30 Sep 2026 10:18:50 +0200 Message-ID: <20260930081834.2948939-37-jremus@linux.ibm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260930081834.2948939-22-jremus@linux.ibm.com> References: <20260930081834.2948939-22-jremus@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTMwMDAzMiBTYWx0ZWRfXzYZNSU/GI4ps dSxcSbyZh0ELumThZeLD02eVJWobqtcs11/8V3ZIT27PGU+B3B/1ORbMt3/PTgxhBcqckfLLldl CPicnShJ5fqMivMY0fvkCjCVaKPFMlA= X-Authority-Analysis: v=2.4 cv=HJ5WhYtv c=1 sm=1 tr=0 ts=6abcc5eb cx=c_pps a=3Bg1Hr4SwmMryq2xdFQyZA==:117 a=3Bg1Hr4SwmMryq2xdFQyZA==:17 a=VdqzKS8jKosA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=U7nrCbtTmkRpXpFmAIza:22 a=VnNF1IyMAAAA:8 a=XdiNeWxddfOBFnCNaTIA:9 X-Proofpoint-GUID: 3g8vLLLaMdD-4Hw8TRkcNfEE_5L1au58 X-Proofpoint-ORIG-GUID: 3g8vLLLaMdD-4Hw8TRkcNfEE_5L1au58 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTMwMDAzMiBTYWx0ZWRfXwVzA3azplq5d KgOqJiER/27nUhEntdYcSwZ3FxsBh4ZBM8ZjiQpUQJMlveyRwZrjf9PeS2P73jiSUK4bzSJi8P/ YGG7QjIgOxLl59vU6ItzmThezWn+ycK6I/ERFFpK6+f6gndfDl8SwBbqKo3sHQC3YFHn8TMXWwH GhJ/1+a4GWPfr/xri6zoIqlsG1nT8tHgeoyQuga8uIp33V5uGICdxGF8poohFCovOFgV+6nKlJl 3K6xNtOoqDHGPyT8dbnTCZJLWO2solyyDQ1GWsl5dPEH+zpI1ZTjGW5TqeamL26XqYU0h4T7rbP Do/YFo+wY9zxtnjbe2OdwTZmxb1K2fj4iiciMqlAgZSU8/fmOZdjwBnJqwmNIuLQ+/PWy1rkCmN Mjj5wV8cGRqfHXmINHHw6eU2fD+kymHxIykDQG3WO1W2fL8Y/G1BlEcfY/IrJvZXGJowKV4sfj8 n3GMI09m7eTKBXGjcUQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-30_01,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 bulkscore=0 clxscore=1015 lowpriorityscore=0 spamscore=0 impostorscore=0 phishscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609300032 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, RCVD_IN_PBL, SPF_HELO_NONE, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces~patchwork=sourceware.org@sourceware.org Former instruction format RRF[-a], where the first operand is in bits 16-19, has been separated into the new RRD format since IBM z196. [1, 2] [1]: IBM z/Architecture Principles of Operation, SA22-7832-07, IBM z10, https://publibfp.dhe.ibm.com/epubs/pdf/dz9zr007.pdf [2]: IBM z/Architecture Principles of Operation, SA22-7832-08, IBM z196, https://publibfp.dhe.ibm.com/epubs/pdf/dz9zr008.pdf opcodes/ * s390-opc.c (INSTR_RRF_F0FF, MASK_RRF_F0FF): Rename to INSTR_RRD_F0FF and MASK_RRD_F0FF. * s390-opc.txt (madbr, madr, maebr, maer, msdbr, msdr, msebr, mser, myhr, mylr): Use renamed insn format RRD_F0FF. Signed-off-by: Jens Remus --- opcodes/s390-opc.c | 4 ++-- opcodes/s390-opc.txt | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/opcodes/s390-opc.c b/opcodes/s390-opc.c index 92c4a37d59ce..7222d2368610 100644 --- a/opcodes/s390-opc.c +++ b/opcodes/s390-opc.c @@ -339,6 +339,7 @@ unused_s390_operands_static_asserts (void) #define INSTR_RIS_R0RDI 6, { R_8,I8_32,D_20,B_16,0,0 } /* e.g. cibne */ #define INSTR_RIS_RURDU 6, { R_8,U8_32,U4_12,D_20,B_16,0 } /* e.g. clib */ #define INSTR_RIS_R0RDU 6, { R_8,U8_32,D_20,B_16,0,0 } /* e.g. clibne*/ +#define INSTR_RRD_F0FF 4, { F_16,F_24,F_28,0,0,0 } /* e.g. madbr */ #define INSTR_RRE_00 4, { 0,0,0,0,0,0 } /* e.g. palb */ #define INSTR_RRE_0R 4, { R_28,0,0,0,0,0 } /* e.g. tb */ #define INSTR_RRE_AA 4, { A_24,A_28,0,0,0,0 } /* e.g. cpya */ @@ -359,7 +360,6 @@ unused_s390_operands_static_asserts (void) #define INSTR_RRE_RERE 4, { RE_24,RE_28,0,0,0,0 } /* e.g. cuse */ #define INSTR_RRE_FR 4, { F_24,R_28,0,0,0,0 } /* e.g. ldgr */ #define INSTR_RRE_FER 4, { FE_24,R_28,0,0,0,0 } /* e.g. cxfbr */ -#define INSTR_RRF_F0FF 4, { F_16,F_24,F_28,0,0,0 } /* e.g. madbr */ #define INSTR_RRF_FE0FF 4, { FE_16,F_24,F_28,0,0,0 } /* e.g. myr */ #define INSTR_RRF_F0FF2 4, { F_24,F_16,F_28,0,0,0 } /* e.g. cpsdr */ #define INSTR_RRF_F0FR 4, { F_24,F_16,R_28,0,0,0 } /* e.g. iedtr */ @@ -574,6 +574,7 @@ unused_s390_operands_static_asserts (void) #define MASK_RIS_R0RDI { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff } #define MASK_RIS_RURDU { 0xff, 0x00, 0x00, 0x00, 0x00, 0xff } #define MASK_RIS_R0RDU { 0xff, 0x0f, 0x00, 0x00, 0x00, 0xff } +#define MASK_RRD_F0FF { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } #define MASK_RRE_00 { 0xff, 0xff, 0xff, 0xff, 0x00, 0x00 } #define MASK_RRE_0R { 0xff, 0xff, 0xff, 0xf0, 0x00, 0x00 } #define MASK_RRE_AA { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 } @@ -594,7 +595,6 @@ unused_s390_operands_static_asserts (void) #define MASK_RRE_RERE { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 } #define MASK_RRE_FR { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 } #define MASK_RRE_FER { 0xff, 0xff, 0xff, 0x00, 0x00, 0x00 } -#define MASK_RRF_F0FF { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } #define MASK_RRF_FE0FF { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } #define MASK_RRF_F0FF2 { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } #define MASK_RRF_F0FR { 0xff, 0xff, 0x0f, 0x00, 0x00, 0x00 } diff --git a/opcodes/s390-opc.txt b/opcodes/s390-opc.txt index 0062f87b1b62..bf0b6362d56a 100644 --- a/opcodes/s390-opc.txt +++ b/opcodes/s390-opc.txt @@ -342,13 +342,13 @@ b317 meebr RRE_FF "multiply short bfp" g5 esa,zarch ed0000000017 meeb RXE_FRRD "multiply short bfp" g5 esa,zarch b30c mdebr RRE_FF "multiply short to long bfp" g5 esa,zarch ed000000000c mdeb RXE_FRRD "multiply short to long bfp" g5 esa,zarch -b31e madbr RRF_F0FF "multiply and add long bfp" g5 esa,zarch +b31e madbr RRD_F0FF "multiply and add long bfp" g5 esa,zarch ed000000001e madb RXF_FRRDF "multiply and add long bfp" g5 esa,zarch -b30e maebr RRF_F0FF "multiply and add short bfp" g5 esa,zarch +b30e maebr RRD_F0FF "multiply and add short bfp" g5 esa,zarch ed000000000e maeb RXF_FRRDF "multiply and add short bfp" g5 esa,zarch -b31f msdbr RRF_F0FF "multiply and subtract long bfp" g5 esa,zarch +b31f msdbr RRD_F0FF "multiply and subtract long bfp" g5 esa,zarch ed000000001f msdb RXF_FRRDF "multiply and subtract long bfp" g5 esa,zarch -b30f msebr RRF_F0FF "multiply and subtract short bfp" g5 esa,zarch +b30f msebr RRD_F0FF "multiply and subtract short bfp" g5 esa,zarch ed000000000f mseb RXF_FRRDF "multiply and subtract short bfp" g5 esa,zarch # efpc and sfpc have only one operand; retain RR register format for compatibility b384 sfpc RRE_RR "set fpc" g5 esa,zarch optparm @@ -725,13 +725,13 @@ eb0000000096 lmh RSY_RRRD "load multiple high" z990 zarch # new z990 instructions b98a cspg RRE_RR "compare and swap and purge" z990 zarch b98e idte RRF_RURR2 "invalidate dat table entry" z990 zarch optparm -b33e madr RRF_F0FF "multiply and add long hfp" z990 esa,zarch +b33e madr RRD_F0FF "multiply and add long hfp" z990 esa,zarch ed000000003e mad RXF_FRRDF "multiply and add long hfp" z990 esa,zarch -b32e maer RRF_F0FF "multiply and add short hfp" z990 esa,zarch +b32e maer RRD_F0FF "multiply and add short hfp" z990 esa,zarch ed000000002e mae RXF_FRRDF "multiply and add short hfp" z990 esa,zarch -b33f msdr RRF_F0FF "multiply and subtract long hfp" z990 esa,zarch +b33f msdr RRD_F0FF "multiply and subtract long hfp" z990 esa,zarch ed000000003f msd RXF_FRRDF "multiply and subtract long hfp" z990 esa,zarch -b32f mser RRF_F0FF "mutliply and subtract short hfp" z990 esa,zarch +b32f mser RRD_F0FF "mutliply and subtract short hfp" z990 esa,zarch ed000000002f mse RXF_FRRDF "multiply and subttract short hfp" z990 esa,zarch b92e km RRE_RERE "cipher message" z990 esa,zarch b92f kmc RRE_RERE "cipher message with chaining" z990 esa,zarch @@ -805,14 +805,14 @@ b9b0 cu14 RRF_U0RERE "convert utf-8 to utf-32" z9-109 zarch optparm b9be srstu RRE_RR "search string unicode" z9-109 zarch d0 trtr SS_L0RDRD "tranlate and test reverse" z9-109 zarch b33b myr RRF_FE0FF "multiply unnormalized long hfp" z9-109 zarch -b33d myhr RRF_F0FF "multiply unnormalized long hfp high" z9-109 zarch -b339 mylr RRF_F0FF "multiply unnormalized long hfp low" z9-109 zarch +b33d myhr RRD_F0FF "multiply unnormalized long hfp high" z9-109 zarch +b339 mylr RRD_F0FF "multiply unnormalized long hfp low" z9-109 zarch ed000000003b my RXF_FRRDFE "multiply unnormalized long hfp" z9-109 zarch ed000000003d myh RXF_FRRDF "multiply unnormalized long hfp high" z9-109 zarch ed0000000039 myl RXF_FRRDF "multiply unnormalized long hfp low" z9-109 zarch -b33a mayr RRF_F0FF "multiply and add unnormalized long hfp" z9-109 zarch -b33c mayhr RRF_F0FF "multiply and add unnormalized long hfp high" z9-109 zarch -b338 maylr RRF_F0FF "multiply and add unnormalized long hfp low" z9-109 zarch +b33a mayr RRD_F0FF "multiply and add unnormalized long hfp" z9-109 zarch +b33c mayhr RRD_F0FF "multiply and add unnormalized long hfp high" z9-109 zarch +b338 maylr RRD_F0FF "multiply and add unnormalized long hfp low" z9-109 zarch ed000000003a may RXF_FRRDF "multiply and add unnormalized long hfp" z9-109 zarch ed000000003c mayh RXF_FRRDF "multiply and add unnormalized long hfp high" z9-109 zarch ed0000000038 mayl RXF_FRRDF "multiply and add unnormalized long hfp low" z9-109 zarch