From patchwork Fri Jul 19 18:06:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 94235 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 53821384DEFC for ; Fri, 19 Jul 2024 18:10:25 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 5914A384F4BE for ; Fri, 19 Jul 2024 18:06:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5914A384F4BE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5914A384F4BE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721412412; cv=none; b=tyKKRLB9WJuUbhW/Q5CMO3Mh7uCQGqL/nFnjjdOX84eQFNv/EDcU5e/Qdj8uNdqukEIOVzGNEjL0k8EKvja10v3JQK1Q9lAokTGhcfLyr79yTlXKJ4kN9NLL1orp21jksA74pjRvkuQMaMkPNB7uT3Q/+A3kvBa1Rq+h4wAZ54k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721412412; c=relaxed/simple; bh=n8b6WrzdmoT3yL4HygMI+Ku5IKMdvxfJCCRxZ0LTrqE=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=RX70+WQvhoxcdALIXYIVmib+LEZRhApC9Td3ORss2CemscbcnxH+mXtBkJKFLJr5hvpPXcTOnK/Fctr4woQzr64ucjcHMZ1uzWrgGiUh36d0qZZ5RbaQDY03NQGb+Gc/uMd/BlUnsxKeqqsARlSf5bpxiY/FWziqhgNoJmOZCJA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1721412410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=iUZDHyVO6H3RfDd8TITqzmR8gCNXMfonZYFpZdG7C9c=; b=Afl8lVamYxawk15KzAT8YwzHBjJf50AyL0rPR1eKTHrQVfT+PGubkQap88Bw2i7eciWks1 EXjurcPhs1EKwch2biAH//qezKP1EN+B1G4l7Cp2CCWNs/moFORp0ubu2FGQp3DfrsROWb y98PRv1gNZ9SSJDoI8zD3ZbfvWv2KXU= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-665-bRe1uWivP6WoFHpQ8qMEVQ-1; Fri, 19 Jul 2024 14:06:48 -0400 X-MC-Unique: bRe1uWivP6WoFHpQ8qMEVQ-1 Received: by mail-ej1-f70.google.com with SMTP id a640c23a62f3a-a77bfa15f92so166916066b.0 for ; Fri, 19 Jul 2024 11:06:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721412407; x=1722017207; h=mime-version:message-id:subject:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iUZDHyVO6H3RfDd8TITqzmR8gCNXMfonZYFpZdG7C9c=; b=PYogKCODG/MFPp3/moejcItb4eyhUPenOL/QMzYRDrIOdGiBQMrmBBHApsRh4wV0eD WVQR00X37CDG43W+TWwPX51SZ1hZLRc+4hhoYfXULdXjJTjhUAXAPiBw1BVlUHCJQxaM CNGTKeSlCEZhGCwgksTKKufeDNA+6R+T1kUO8g/pYUSlrjPQRFdOpt57u9nplAPgGWn/ P7GEPxS9HtLBUa8h6F9s+pTHzELPPlwKW5FK7BI90rBZw+KSxm+Lob10ZA2GOAXpydEQ VIA7cuQPcHe2TXBBxoGV4Ggmk1zbWRRLA6lg2a6CLeHTcgi7rs1y9dhtbm8psjeiJ1r2 b5EQ== X-Gm-Message-State: AOJu0YyLUNiBCgqvEu6c1C22AOapS39CyDeVmKbDy63pIxnpEF+omdC0 AnlWw0NmykOiVqSyZV6XgGgup3hvDI9W/+GaVk/tJJKWJ5p/bJQ6D+6E280OB4u1Eo/o/YyIYqZ GfJ35cy8q6AJAyhI3I7Oj7fKn8rXrUV8XNHrEMFLR5W88633BUce9uy6v3QjGA10zTdrOXUkyN4 6Xc30pYXh+7HCzddyexgOBN3cUoMX/bG2ZCcE= X-Received: by 2002:a17:907:968a:b0:a6e:f7ee:b1fa with SMTP id a640c23a62f3a-a7a01371fd7mr697221366b.72.1721412407246; Fri, 19 Jul 2024 11:06:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGTP02V3Tp4egHBxDBBpQrBCejHJY5lNv8LwNQo36pBCG/pFs3IoCXV6P2umLMhAJfztiJYXg== X-Received: by 2002:a17:907:968a:b0:a6e:f7ee:b1fa with SMTP id a640c23a62f3a-a7a01371fd7mr697219766b.72.1721412406743; Fri, 19 Jul 2024 11:06:46 -0700 (PDT) Received: from tpp.orcam.me.uk (tpp.orcam.me.uk. [81.187.245.177]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7a3c8bf30csm60727066b.141.2024.07.19.11.06.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jul 2024 11:06:46 -0700 (PDT) Date: Fri, 19 Jul 2024 19:06:45 +0100 (BST) From: "Maciej W. Rozycki" To: binutils@sourceware.org Subject: [committed] MIPS/opcodes: Mark PAUSE as an alias Message-ID: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP 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.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 PAUSE is an assembly idiom for 'sll $0,$0,5', so mark it as an alias in the regular MIPS opcode table, matching the microMIPS opcode table. A test case will be supplied separately. --- opcodes/mips-opc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) binutils-mips-opcodes-pause-alias.diff Index: binutils-gdb/opcodes/mips-opc.c =================================================================== --- binutils-gdb.orig/opcodes/mips-opc.c +++ binutils-gdb/opcodes/mips-opc.c @@ -1677,7 +1677,7 @@ const struct mips_opcode mips_builtin_op {"ori", "t,r,i", 0x34000000, 0xfc000000, WR_1|RD_2, 0, I1, 0, 0 }, {"pabsdiff.ob", "X,Y,Q", 0x78000009, 0xfc20003f, WR_1|RD_2|RD_3|FP_D, 0, SB1, 0, 0 }, {"pabsdiffc.ob", "Y,Q", 0x78000035, 0xfc2007ff, RD_1|RD_2|FP_D, WR_MACC, SB1, 0, 0 }, -{"pause", "", 0x00000140, 0xffffffff, TRAP, 0, I33, 0, 0 }, +{"pause", "", 0x00000140, 0xffffffff, TRAP, AL, I33, 0, 0 }, {"pavg.ob", "X,Y,Q", 0x78000008, 0xfc20003f, WR_1|RD_2|RD_3|FP_D, 0, SB1, 0, 0 }, {"pabsh", "d,t", 0x70000168, 0xffe007ff, WR_1|RD_2, 0, MMI, 0, 0 }, {"pabsw", "d,t", 0x70000068, 0xffe007ff, WR_1|RD_2, 0, MMI, 0, 0 },