From patchwork Thu Jun 22 23:25:09 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: 111837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5406706vqr; Thu, 22 Jun 2023 16:26:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4rw4+5U95jLHkVLcp3ai92jWmwXPZBMbuG7NJsSfL6LdKNTpSEqMHUeMWaJZJTPWzquz8B X-Received: by 2002:a19:e301:0:b0:4f6:2b21:ece1 with SMTP id a1-20020a19e301000000b004f62b21ece1mr11730151lfh.43.1687476362463; Thu, 22 Jun 2023 16:26:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687476362; cv=none; d=google.com; s=arc-20160816; b=G1YQYtj6hvLfnXNnv98FbK9ma7BHXhsC7BfgF9CWk3s5uXVd7JsXLpNod8LQmvPhG5 EEUNzz/yWUIg5IqpXv9lfCIKE08GRMBLwkUshtlDlOWYBCo42BbBJv74mz+4/0nJNdaT U5ED0110nIFiZI7Rztzi2SpchEElu5PSNoR9MEmdaz0ycbxleWsp93tHrZfSeUk9VyAu ewdbL3Ojj9G/PWjXm+xuoBQpW5MCdYAKqhQRAe7+fFhFKdrn5qBQC0Fb7NJ0yR+CqJQf LiGr6Kiyzh5eF4Yc163GOFDn4/5J1pbxrLXbfXQOGgGnhL1osG6CP0czFs0REX5SrS6b /L0A== 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:message-id:date:subject:to:from:dkim-signature :dmarc-filter:delivered-to; bh=+YwYvTY9yg0VbiCkJrRFm9m1GDALZ/+oLcDsnPW6UJM=; b=FESbXaLCOwDwr1PK6sUML5sF6UVz7JKOqoYJTufV59ly/RZOsuOA0VUkHapS8gMgQy 3fKLiR3ETBkYLve9rD4DQ5vfij7WQBuvC09BTjAqHN3X+9dYDPdR/pfnU0ZLT6AJT/vT nTu7nKncxNuJbiLwa2/yvlEfcV+evk/Ji/7MP40Ehf1e66vyPK+BQu8HVslvLhztiMe9 XYXF8Nh3RPvP1NGGLO7Vdjs86tFy+8BnRoNl+gLv6a+dVGwt2lOZ5PWHZtWV6YF879y2 07xhAzxD7ztMSSp7rVQwkXAMb5vHjHfVtjyAMBCZ2Q43jpDUvbrkfN1SnLo8Hia7DEEF fLvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@davidgf-es.20221208.gappssmtp.com header.s=20221208 header.b=BygfljoL; 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 v25-20020aa7d9d9000000b0051a2db13ddbsi3936780eds.192.2023.06.22.16.26.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 16:26:02 -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=BygfljoL; 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 0B84A385841B for ; Thu, 22 Jun 2023 23:26:01 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 728E53858D37 for ; Thu, 22 Jun 2023 23:25:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 728E53858D37 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-x32a.google.com with SMTP id 5b1f17b1804b1-3fa23c3e618so1396155e9.0 for ; Thu, 22 Jun 2023 16:25:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidgf-es.20221208.gappssmtp.com; s=20221208; t=1687476352; x=1690068352; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=+YwYvTY9yg0VbiCkJrRFm9m1GDALZ/+oLcDsnPW6UJM=; b=BygfljoLutSwAz8thxBX45DKVGn8CQOnmw7jcmQe1SI0Dz2a7HMfFPrpX/VoFM4KNc qeNsywbZZwe3+K1luBnSls0J5SBfvjYfH9JevbAXOp9g+GmRPaQxcKPuGe7Om/8PUlQG o4hDbRlOsCLvzkCH9+CtjEDxQL3/q5Id1kUIGHNKl+i4mfcnkODBdjUgmK0jpTpOO7ZR 7ike3aTbvyuNZ8AwHlb4q1rgbUeG2Jv+cOOON4jICJm16ZuQftUFvfpI/WmqswoalQgb XMXxGhRvLfv2DU8eF9lrXsh0ihNYL7aMch8Rks9HFcPjYJPsQxFiLC77K+4hHu2Q1k+6 4TBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687476352; x=1690068352; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+YwYvTY9yg0VbiCkJrRFm9m1GDALZ/+oLcDsnPW6UJM=; b=YZc2vV8XSqlTJs/4SYx7o3RDZ77oUUYm2fzTHNbZcGLiHYVsIwS+mmkv3F7aFEQ4qe F0WxzcXkupvkMkh3rIUHyE9aVsTtPo2vxWRwsLWdWsEzggPoD2GO616gmqO+rCua5pbz M2vTtShBi5GHJRfCGERRQHBZtDMFJMyedXX8hziz4S3X/o8BhH5JcVDhdfZdAt1MOZZ6 27w1LrVLhNgBz/WIa0WvFdLp+SlHdqpnXt5hW8fpVgkj/cUBNHgM5tuU3rsJQwKFI/r+ iESVzppv+s6dtW9PPyeZ+S2UHRxsmt+LVE6c62MC2qmYOP381byzSg/YZuEo62OzUjqf dT6w== X-Gm-Message-State: AC+VfDwpzLWtHUE5RsVqbZ4Uy3g8UWhjtb344GOt0qttT2I9LMYdTeza J+PkGMTocyPrb039vPO4UZglqqgWYGgy1cy9+w== X-Received: by 2002:a7b:cc99:0:b0:3f9:b88a:f9aa with SMTP id p25-20020a7bcc99000000b003f9b88af9aamr7369468wma.11.1687476351497; Thu, 22 Jun 2023 16:25:51 -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.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 16:25:29 -0700 (PDT) From: david@davidgf.es To: binutils@sourceware.org Subject: [PATCH 1/2] Exclude trap instructions for MIPS Allegrex Date: Fri, 23 Jun 2023 01:25:09 +0200 Message-Id: <20230622232510.49099-1-david@davidgf.es> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, LOTS_OF_MONEY, 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?1769447214125498555?= X-GMAIL-MSGID: =?utf-8?q?1769447214125498555?= From: David Guillen Fandos These instructions are not supported by the target even though they are part of the MIPS II specification. --- opcodes/mips-opc.c | 60 +++++++++++------------ gas/testsuite/gas/mips/mips.exp | 1 + gas/testsuite/gas/mips/allegrex-removed.s | 13 +++++ gas/testsuite/gas/mips/allegrex-removed.l | 13 +++++ 4 files changed, 57 insertions(+), 30 deletions(-) create mode 100644 gas/testsuite/gas/mips/allegrex-removed.s create mode 100644 gas/testsuite/gas/mips/allegrex-removed.l diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c index 2cc82010a4..39833cd45f 100644 --- a/opcodes/mips-opc.c +++ b/opcodes/mips-opc.c @@ -2028,21 +2028,21 @@ const struct mips_opcode mips_builtin_opcodes[] = {"synci", "o(b)", 0x041f0000, 0xfc1f0000, RD_2|SM, 0, I33, 0, 0 }, {"syscall", "", 0x0000000c, 0xffffffff, TRAP, 0, I1, 0, 0 }, {"syscall", "B", 0x0000000c, 0xfc00003f, TRAP, 0, I1, 0, 0 }, -{"teqi", "s,j", 0x040c0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, -{"teq", "s,t", 0x00000034, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"teq", "s,t,q", 0x00000034, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"teq", "s,j", 0x040c0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, /* teqi */ -{"teq", "s,I", 0, (int) M_TEQ_I, INSN_MACRO, 0, I2, 0, 0 }, -{"tgei", "s,j", 0x04080000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, -{"tge", "s,t", 0x00000030, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tge", "s,t,q", 0x00000030, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tge", "s,j", 0x04080000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, /* tgei */ -{"tge", "s,I", 0, (int) M_TGE_I, INSN_MACRO, 0, I2, 0, 0 }, -{"tgeiu", "s,j", 0x04090000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, -{"tgeu", "s,t", 0x00000031, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tgeu", "s,t,q", 0x00000031, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tgeu", "s,j", 0x04090000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, /* tgeiu */ -{"tgeu", "s,I", 0, (int) M_TGEU_I, INSN_MACRO, 0, I2, 0, 0 }, +{"teqi", "s,j", 0x040c0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, +{"teq", "s,t", 0x00000034, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"teq", "s,t,q", 0x00000034, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"teq", "s,j", 0x040c0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, /* teqi */ +{"teq", "s,I", 0, (int) M_TEQ_I, INSN_MACRO, 0, I2, 0, AL }, +{"tgei", "s,j", 0x04080000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, +{"tge", "s,t", 0x00000030, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tge", "s,t,q", 0x00000030, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tge", "s,j", 0x04080000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, /* tgei */ +{"tge", "s,I", 0, (int) M_TGE_I, INSN_MACRO, 0, I2, 0, AL }, +{"tgeiu", "s,j", 0x04090000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, +{"tgeu", "s,t", 0x00000031, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tgeu", "s,t,q", 0x00000031, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tgeu", "s,j", 0x04090000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, /* tgeiu */ +{"tgeu", "s,I", 0, (int) M_TGEU_I, INSN_MACRO, 0, I2, 0, AL }, {"tlbinv", "", 0x42000003, 0xffffffff, INSN_TLB, 0, I37, TLBINV, 0 }, {"tlbinvf", "", 0x42000004, 0xffffffff, INSN_TLB, 0, I37, TLBINV, 0 }, {"tlbp", "", 0x42000008, 0xffffffff, INSN_TLB, 0, I1, 0, 0 }, @@ -2055,21 +2055,21 @@ const struct mips_opcode mips_builtin_opcodes[] = {"tlbginvf", "", 0x4200000c, 0xffffffff, INSN_TLB, 0, 0, IVIRT, 0 }, {"tlbgwr", "", 0x4200000e, 0xffffffff, INSN_TLB, 0, 0, IVIRT, 0 }, {"tlbgp", "", 0x42000010, 0xffffffff, INSN_TLB, 0, 0, IVIRT, 0 }, -{"tlti", "s,j", 0x040a0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, -{"tlt", "s,t", 0x00000032, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tlt", "s,t,q", 0x00000032, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tlt", "s,j", 0x040a0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, /* tlti */ -{"tlt", "s,I", 0, (int) M_TLT_I, INSN_MACRO, 0, I2, 0, 0 }, -{"tltiu", "s,j", 0x040b0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, -{"tltu", "s,t", 0x00000033, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tltu", "s,t,q", 0x00000033, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tltu", "s,j", 0x040b0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, /* tltiu */ -{"tltu", "s,I", 0, (int) M_TLTU_I, INSN_MACRO, 0, I2, 0, 0 }, -{"tnei", "s,j", 0x040e0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, -{"tne", "s,t", 0x00000036, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tne", "s,t,q", 0x00000036, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, 0 }, -{"tne", "s,j", 0x040e0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37 }, /* tnei */ -{"tne", "s,I", 0, (int) M_TNE_I, INSN_MACRO, 0, I2, 0, 0 }, +{"tlti", "s,j", 0x040a0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, +{"tlt", "s,t", 0x00000032, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tlt", "s,t,q", 0x00000032, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tlt", "s,j", 0x040a0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, /* tlti */ +{"tlt", "s,I", 0, (int) M_TLT_I, INSN_MACRO, 0, I2, 0, AL }, +{"tltiu", "s,j", 0x040b0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, +{"tltu", "s,t", 0x00000033, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tltu", "s,t,q", 0x00000033, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tltu", "s,j", 0x040b0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, /* tltiu */ +{"tltu", "s,I", 0, (int) M_TLTU_I, INSN_MACRO, 0, I2, 0, AL }, +{"tnei", "s,j", 0x040e0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, +{"tne", "s,t", 0x00000036, 0xfc00ffff, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tne", "s,t,q", 0x00000036, 0xfc00003f, RD_1|RD_2|TRAP, 0, I2, 0, AL }, +{"tne", "s,j", 0x040e0000, 0xfc1f0000, RD_1|TRAP, 0, I2, 0, I37|AL }, /* tnei */ +{"tne", "s,I", 0, (int) M_TNE_I, INSN_MACRO, 0, I2, 0, AL }, {"trunc.l.d", "D,S", 0x46200009, 0xffff003f, WR_1|RD_2|FP_D, 0, I3_33, 0, 0 }, {"trunc.l.s", "D,S", 0x46000009, 0xffff003f, WR_1|RD_2|FP_S|FP_D, 0, I3_33, 0, 0 }, {"trunc.w.d", "D,S", 0x4620000d, 0xffff003f, WR_1|RD_2|FP_S|FP_D, 0, I2, 0, SF }, diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp index 91cf8b1107..bb249b3525 100644 --- a/gas/testsuite/gas/mips/mips.exp +++ b/gas/testsuite/gas/mips/mips.exp @@ -1628,6 +1628,7 @@ if { [istarget mips*-*-vxworks*] } { run_list_test "r5900-error-vu0" "-march=r5900" run_dump_test "allegrex" + run_list_test_arches "allegrex-removed" [mips_arch_list_matching allegrex] run_list_test_arches "ext-ill" [mips_arch_list_matching mips64r2] diff --git a/gas/testsuite/gas/mips/allegrex-removed.s b/gas/testsuite/gas/mips/allegrex-removed.s new file mode 100644 index 0000000000..8dac8a1fca --- /dev/null +++ b/gas/testsuite/gas/mips/allegrex-removed.s @@ -0,0 +1,13 @@ + .set noreorder + teqi $11,1024 + tgei $11,1024 + tgeiu $11,1024 + tlti $11,1024 + tltiu $11,1024 + tnei $11,1024 + teq $1,$2 + tge $1,$2 + tgeu $1,$2 + tlt $1,$2 + tltu $1,$2 + tne $1,$2 diff --git a/gas/testsuite/gas/mips/allegrex-removed.l b/gas/testsuite/gas/mips/allegrex-removed.l new file mode 100644 index 0000000000..a77d4df2f1 --- /dev/null +++ b/gas/testsuite/gas/mips/allegrex-removed.l @@ -0,0 +1,13 @@ +.*: Assembler messages: +.*:2: Error: opcode not supported on this processor: .* \(.*\) `teqi \$11,1024' +.*:3: Error: opcode not supported on this processor: .* \(.*\) `tgei \$11,1024' +.*:4: Error: opcode not supported on this processor: .* \(.*\) `tgeiu \$11,1024' +.*:5: Error: opcode not supported on this processor: .* \(.*\) `tlti \$11,1024' +.*:6: Error: opcode not supported on this processor: .* \(.*\) `tltiu \$11,1024' +.*:7: Error: opcode not supported on this processor: .* \(.*\) `tnei \$11,1024' +.*:8: Error: opcode not supported on this processor: .* \(.*\) `teq \$1,\$2' +.*:9: Error: opcode not supported on this processor: .* \(.*\) `tge \$1,\$2' +.*:10: Error: opcode not supported on this processor: .* \(.*\) `tgeu \$1,\$2' +.*:11: Error: opcode not supported on this processor: .* \(.*\) `tlt \$1,\$2' +.*:12: Error: opcode not supported on this processor: .* \(.*\) `tltu \$1,\$2' +.*:13: Error: opcode not supported on this processor: .* \(.*\) `tne \$1,\$2' 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 \.\.\.