From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by sourceware.org (Postfix) with ESMTPS id F19B73858432 for ; Thu, 24 Feb 2022 19:02:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org F19B73858432 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cs.unc.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.unc.edu Received: by mail-qt1-x82a.google.com with SMTP id e2so358129qte.12 for ; Thu, 24 Feb 2022 11:02:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.unc.edu; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K6B+ls0NBoJykBQVeMSnkpLkJKzFSL09kGNMvvi21tU=; b=TIvLZ9wdzKHPmKz83Jblpoll4nQNE79AJrYugJ77z1QLKPT+St2Cd442W+Cf9exIhB xsoWmCb0EZUocpbKktG3yr0xjBeetzFXlhUaaO1muEfdBmfvZ2QRklqB32+Oh6EbFaD3 r7CyNLKfHGlZLgnUddjTzCPDyWAQjzHHo3YdDdmh0RXxbjH3TVuNmPa7rG2uZP3wa/ss VcVzrxwbFpFfMSEsAm8k9D1w13Vs0a/ya8z2hvH8W7WtbYkD5pbe9I+TVoaZ87E0WkTi es24DqPth4Oi8fACi5SB/0dmqJl/UB9fmrtNaaSoz4Gd/EfYGc9Xl5+ftOafxO82/RN9 i2UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=K6B+ls0NBoJykBQVeMSnkpLkJKzFSL09kGNMvvi21tU=; b=LLfMFHFBo+t1/xUqtXlmes16WwvjmltlUCD/jqytX0xHiwR7qL8D7gfWJnCcIqJ3xN PjqnCgeIt7gG9H6TfUU4m1PSFwMGC62lTwgdij1OANpWKr9CVSwmX6h+fk+OMWk6+kA2 KEi1peCN0G/fLBclESoux8nnLW5eUUAfkdw9wp3g6KKufm6cMKRzItf6lJ1RbsAoS9Ch MuM17z2vVHUNK1rrYmt+0GAsAtGu3ZCtHjbS5RrbHWkAMrAa66uRBkmi+6lSY7UrVBCu XMbG4cbgAI4cy1x6nG9AX8l6KFj14bHSNnM3zX4xCa2aejdNG0Lnfz22PPPlqH8FyUf/ TiSw== X-Gm-Message-State: AOAM532B1+i1tTKEArPyeAJRW796FfAhWCiXjtfL83CjxJu/KjQfYL5d MEwh49c8mXuOJniFSYvH0MP6Iw== X-Google-Smtp-Source: ABdhPJyTcFLIzYKb0F15Fggh8L3Gje7LaxwDSrZK5majFxQRletkXCMvXmvYiPvAEh8zapHEaCUj3A== X-Received: by 2002:a05:622a:446:b0:2dd:2647:f23e with SMTP id o6-20020a05622a044600b002dd2647f23emr3840001qtx.173.1645729351580; Thu, 24 Feb 2022 11:02:31 -0800 (PST) Received: from localhost.localdomain ([107.13.145.4]) by smtp.gmail.com with ESMTPSA id b5-20020a378005000000b0060dd0c4d7absm209869qkd.53.2022.02.24.11.02.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 11:02:30 -0800 (PST) From: Sagar Patel To: Chenghua Xu , Maciej Rozycki Cc: binutils@sourceware.org, Sagar Patel Subject: [PATCH RESEND] MIPS: make bnez, bnezl, beqz, and beqzl aliases Date: Thu, 24 Feb 2022 14:00:01 -0500 Message-Id: <20220224190000.6574-1-sagarmp@cs.unc.edu> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: , X-List-Received-Date: Thu, 24 Feb 2022 19:02:33 -0000 These four instructions are not described by MIPS Architecture for Programmers Volume II-A: The MIPS32 Instruction Set Manual, Revision 6.06 [1]. Hence, they are pseudoinstructions, and should be aliases. This change fixes objdump -M no-aliases. [1]: https://www.mips.com/?do-download=the-mips32-instruction-set-v6-06 Signed-off-by: Sagar Patel --- opcodes/mips-opc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opcodes/mips-opc.c b/opcodes/mips-opc.c index 0f596d5d43b..61e9d33ebfc 100644 --- a/opcodes/mips-opc.c +++ b/opcodes/mips-opc.c @@ -733,8 +733,8 @@ const struct mips_opcode mips_builtin_opcodes[] = {"bc1tl", "N,p", 0x45030000, 0xffe30000, RD_CC|CBL|FP_S, 0, I4_32, 0, I37 }, /* bc2* are at the bottom of the table. */ /* bc3* are at the bottom of the table. */ -{"beqz", "s,p", 0x10000000, 0xfc1f0000, RD_1|CBD, 0, I1, 0, 0 }, -{"beqzl", "s,p", 0x50000000, 0xfc1f0000, RD_1|CBL, 0, I2|T3, 0, I37 }, +{"beqz", "s,p", 0x10000000, 0xfc1f0000, RD_1|CBD, INSN2_ALIAS, I1, 0, 0 }, +{"beqzl", "s,p", 0x50000000, 0xfc1f0000, RD_1|CBL, INSN2_ALIAS, I2|T3, 0, I37 }, {"beq", "s,t,p", 0x10000000, 0xfc000000, RD_1|RD_2|CBD, 0, I1, 0, 0 }, {"beq", "s,I,p", 0, (int) M_BEQ_I, INSN_MACRO, 0, I1, 0, 0 }, {"beql", "s,t,p", 0x50000000, 0xfc000000, RD_1|RD_2|CBL, 0, I2|T3, 0, I37 }, @@ -784,8 +784,8 @@ const struct mips_opcode mips_builtin_opcodes[] = {"bltzal", "s,p", 0x04100000, 0xfc1f0000, RD_1|WR_31|CBD, 0, I1, 0, I37 }, {"nal", "", 0x04100000, 0xffffffff, WR_31|CBD, 0, I1, 0, 0 }, /* bltzal 0,.+4 */ {"bltzall", "s,p", 0x04120000, 0xfc1f0000, RD_1|WR_31|CBL, 0, I2|T3, 0, I37 }, -{"bnez", "s,p", 0x14000000, 0xfc1f0000, RD_1|CBD, 0, I1, 0, 0 }, -{"bnezl", "s,p", 0x54000000, 0xfc1f0000, RD_1|CBL, 0, I2|T3, 0, I37 }, +{"bnez", "s,p", 0x14000000, 0xfc1f0000, RD_1|CBD, INSN2_ALIAS, I1, 0, 0 }, +{"bnezl", "s,p", 0x54000000, 0xfc1f0000, RD_1|CBL, INSN2_ALIAS, I2|T3, 0, I37 }, {"bne", "s,t,p", 0x14000000, 0xfc000000, RD_1|RD_2|CBD, 0, I1, 0, 0 }, {"bne", "s,I,p", 0, (int) M_BNE_I, INSN_MACRO, 0, I1, 0, 0 }, {"bnel", "s,t,p", 0x54000000, 0xfc000000, RD_1|RD_2|CBL, 0, I2|T3, 0, I37 }, -- 2.25.1