From patchwork Thu Jun 22 23:25:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: david@davidgf.es X-Patchwork-Id: 111838 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5406956vqr; Thu, 22 Jun 2023 16:26:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7fMp/VTB9IIvj8rnIQFChhskDhyom1DqTpVXjbNZAM0CsF5j2qHDTS4PE6+JZBeabBGZOh X-Received: by 2002:a17:907:dac:b0:988:cd12:394f with SMTP id go44-20020a1709070dac00b00988cd12394fmr10567617ejc.64.1687476403731; Thu, 22 Jun 2023 16:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687476403; cv=none; d=google.com; s=arc-20160816; b=TuGKnEOb/C9AaT1bwRvzCTRdgmceOdBQNcWyxtNgUUNovrIvLWwqw0UJbIgL5IgY+1 reSvKcLSntT0hHPMh/hG+VAfm61dxTYXeQy0SsRASV54gs4BA+BWbSWGOgahGBS122ZN QPIVEo+vqtCW8VyomdmGTiB7+M6paECmXrjZCVE2fvG21AlMneXwamXsVq9Sl1h0iY/Y Hf56YZ8l7skSq1/qx3Yk4yDvAKJJcAOMUOwNdteQIT1DtDedUtdIKigO+mIe9yAlwdnd M4xLbwNp9BkELnPe41kUwgLbolpLF4Y/DGU6+W8TStbjDffDM68gs73A9HRLPx3YJvxN zyIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:dmarc-filter:delivered-to; bh=bUJucqF+AFUjD2dC8LRfhQaJQTAr9QP5KmmddwrCEFk=; b=ka5wEDWR79N9M/9GRF7HG0ZaWnMnmOT7IaYa5roYPD3s3VWydb3fcZYRb0S+EfmGLj N2t25Tb9TA4agqA6jnGQGEvP7K9QWX4ZGEeWxxZqVcBzlH21Lh7S8fFlg3+fAaD7rgE7 GteqJ9xrW8aNtKnf51qASxjlazjjPPIa1X/4GymWe9AFRNqLRDSGPZFyM5MFu8CUwYoo ZMV+dWgZ0XeeCF3HU4pj5NCCrg5j9sxq7e19ityUuSMeKT0+x18rX363imNk8bX/EKc1 GOLakzkt3vgZ1xslsrXRMAcwDLdNhCd0exTnc8aGqdzaTnwLQBb60HDgVcxsCpE3T5ZQ vojA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@davidgf-es.20221208.gappssmtp.com header.s=20221208 header.b=v5cyayd5; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u19-20020a170906125300b009888e0923cfsi4632574eja.712.2023.06.22.16.26.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 16:26:43 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@davidgf-es.20221208.gappssmtp.com header.s=20221208 header.b=v5cyayd5; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 343BF3857714 for ; Thu, 22 Jun 2023 23:26:33 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 6F0EF3858D3C for ; Thu, 22 Jun 2023 23:25:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6F0EF3858D3C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=davidgf.es Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=davidgf.es Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fa74d06d72so1066175e9.3 for ; Thu, 22 Jun 2023 16:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidgf-es.20221208.gappssmtp.com; s=20221208; t=1687476355; x=1690068355; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=bUJucqF+AFUjD2dC8LRfhQaJQTAr9QP5KmmddwrCEFk=; b=v5cyayd5dAboU0w4+mK24Xh53Ht9t7Kbk3+93+LF2Nwlqxm4SAcyugapf8eLnOv/4u IPDBVvMs3pkLdAXOpddcaAWc6sqScuKcc19cliMjgAfZoKMLgOjRq4RSrFp2RbxIu/H9 /gGQ67RGckp3sH6m3d6TpJQY4cMpUU2ph/99CXukQVd6V8ujTsQiJtqgQhW+VKjhJ+yF 8kN5H3PYcQP4wfvMVZKo860XaZn5zha7g31pXKCwFK+acErEfTSNoXH9tEWuqkA/PjtR BL3sl2vveaL1VyKyYc4kU/mEKVjMfjTuacqxZIo3RxWwQvPuUgsbp/DnRxBKHeRDggU2 rnqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687476355; x=1690068355; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bUJucqF+AFUjD2dC8LRfhQaJQTAr9QP5KmmddwrCEFk=; b=ctaNMFclHG3EU8O5hzcdeZDD9s4ZRw11SDVfc6uX+TwYJgs+vCJzpcxCUN7RhoRJ4r M6am4Xp6XqahhOL3wAEaR3gNWnhis29L40PK2Br0NtZ/Wjp+FLFEPAIJ4eSz7bhQA3rv j3NutIRAMrpHPc2lODVroRmASe3E4fDm90A9XtYla7/MhnhaQbLzQyZK+nGWkYA71+5F 3aJCmrB8oWnRLfucqjajve/mE3Y0mtZ7tdFMpaZs0OYp09c8m3z2hxriovKule3He9Y0 Y7d/PwKPTqjNny6j3VrCoHjbbKlWoglxilitPL67CvOYCAw6NkaQyqPi4SKFx2Y0Alym q/7Q== X-Gm-Message-State: AC+VfDwsFekAyi2ijECSoCwXL5gwrFikDeT1xk5GMUHSaSKvhK+UL8zD qYxEeDg4hb3Nh15iaFgOHzg3YO+K64ptuMSFFQ== X-Received: by 2002:a1c:750a:0:b0:3f5:878:c0c2 with SMTP id o10-20020a1c750a000000b003f50878c0c2mr14140400wmc.3.1687476355200; Thu, 22 Jun 2023 16:25:55 -0700 (PDT) Received: from localhost.localdomain ([37.17.237.79]) by smtp.gmail.com with ESMTPSA id y25-20020a1c4b19000000b003f9b4330880sm683075wma.29.2023.06.22.16.25.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 16:25:51 -0700 (PDT) From: david@davidgf.es To: binutils@sourceware.org Subject: [PATCH 2/2] Adding missing MIPS Allegrex instruction Date: Fri, 23 Jun 2023 01:25:10 +0200 Message-Id: <20230622232510.49099-2-david@davidgf.es> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230622232510.49099-1-david@davidgf.es> References: <20230622232510.49099-1-david@davidgf.es> MIME-Version: 1.0 X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769447257586701424?= X-GMAIL-MSGID: =?utf-8?q?1769447257586701424?= From: David Guillen Fandos --- opcodes/mips-opc.c | 2 +- gas/testsuite/gas/mips/allegrex.s | 1 + gas/testsuite/gas/mips/allegrex.d | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c index 39833cd45f..4e0c58d600 100644 --- a/opcodes/mips-opc.c +++ b/opcodes/mips-opc.c @@ -1030,7 +1030,7 @@ const struct mips_opcode mips_builtin_opcodes[] = {"daddu", "d,v,t", 0x0000002d, 0xfc0007ff, WR_1|RD_2|RD_3, 0, I3, 0, 0 }, {"daddu", "t,r,I", 0, (int) M_DADDU_I, INSN_MACRO, 0, I3, 0, 0 }, {"daddwc", "d,s,t", 0x70000038, 0xfc0007ff, WR_1|RD_2|RD_3|WR_C0|RD_C0, 0, XLR, 0, 0 }, -{"dbreak", "", 0x7000003f, 0xffffffff, 0, 0, N5, 0, 0 }, +{"dbreak", "", 0x7000003f, 0xffffffff, 0, 0, N5|AL, 0, 0 }, {"dclo", "d,s", 0x00000053, 0xfc1f07ff, WR_1|RD_2, 0, I69, 0, 0 }, {"dclo", "U,s", 0x70000025, 0xfc0007ff, WR_1|RD_2, 0, I64|N55, 0, I69 }, {"dclz", "d,s", 0x00000052, 0xfc1f07ff, WR_1|RD_2, 0, I69, 0, 0 }, diff --git a/gas/testsuite/gas/mips/allegrex.s b/gas/testsuite/gas/mips/allegrex.s index c36745882d..df05f97ee4 100644 --- a/gas/testsuite/gas/mips/allegrex.s +++ b/gas/testsuite/gas/mips/allegrex.s @@ -40,6 +40,7 @@ mfdr $v0, $0 mfdr $v0, $1 mtdr $v1, $1 + dbreak dret # Force some (non-delay-slot) zero bytes, to make 'objdump' print ... diff --git a/gas/testsuite/gas/mips/allegrex.d b/gas/testsuite/gas/mips/allegrex.d index d0f79671de..b535c6dbdc 100644 --- a/gas/testsuite/gas/mips/allegrex.d +++ b/gas/testsuite/gas/mips/allegrex.d @@ -46,5 +46,6 @@ Disassembly of section .text: 0x00000094 7002003d mfdr \$2,\$0 0x00000098 7002083d mfdr \$2,\$1 0x0000009c 7083083d mtdr \$3,\$1 -0x000000a0 7000003e dret +0x000000a0 7000003f dbreak +0x000000a4 7000003e dret \.\.\.