From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 9AF823857C79 for ; Thu, 3 Nov 2022 13:58:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9AF823857C79 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667483900; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Lz9xzwVv4oeaCYTyGWXVY+XRyoSI0+hBq/Ez/lPLHW4=; b=PphLb1J2/l72RctsBjRwYhnAz/N70Y9PxkXVZZZN/LwD6fj0FHcXJnj+yNVvSGj66iBtyJ a4RQOJcGXRIfVWPbYcb2r/0gdfE0mlHS2PrUzw5GXEMEU5yn9BCg7/w8lGcXmee38cZpYQ zWnkArhDXWciy2V4dIyDb/V0HMGRckU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-207-Kp8qobN0M9yNbGVtM6yAeg-1; Thu, 03 Nov 2022 09:58:18 -0400 X-MC-Unique: Kp8qobN0M9yNbGVtM6yAeg-1 Received: by mail-wm1-f70.google.com with SMTP id i128-20020a1c3b86000000b003cf4ff1b917so895925wma.2 for ; Thu, 03 Nov 2022 06:58:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Lz9xzwVv4oeaCYTyGWXVY+XRyoSI0+hBq/Ez/lPLHW4=; b=K+EYQXc7WZaTxWLJgbl6ToZ6lF5DGxDIMEpWYyjcYtiFM+k7EBcQ3I4nBbEAZdvyeo kSQHb1NCKfMgPHEXCP3S2fEFkMxA19S7BKbgDp0ox2ogsTvfV4va56ISyQuaaD90vORS d57T+mxuoS/RvIl6J7z8FEDrCut+RPcbFV9r0Oxrh5MOOQNB4RQ1D7Ucyjwf1ZtZkdgn 6y2EnsWaNZHfr3ZqJoHy7PscluUK2ES/elIlrJI+gGU2ocO6eW0wB9zpD5Whm31M1Dmr C6d4dRs5UBECe7GLuY/6h/Aoc5gBjfU2bZ70LZhQan4zv1uaA6PAs2EF7rojUciosWw+ Hmqw== X-Gm-Message-State: ACrzQf3uyImucaAkcB76IWpKuLBMeIkf3eirdKaqzqIcjCT8ZvPQCOgy S4P5jPEGdAjdvIcISiseG9eulJB2S5dqZV4o5hGPFFIuas3BjuLxd7nsV78Hllfe6+/wfTfxfPm XS18q/3SixysJufZCJCM5Z2RtarmZlDPwb87K2DyGohRqC6cIjLwByA5LUfnzXAxRXqsJdg== X-Received: by 2002:a05:6000:22e:b0:236:6e38:4d9b with SMTP id l14-20020a056000022e00b002366e384d9bmr19602395wrz.4.1667483897317; Thu, 03 Nov 2022 06:58:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6V6xZduKydR8+adx7+W67sraoIW39t28AsyWFHmKHdbkh+a2Oqv//jVb/uDB8A57Mul7CWww== X-Received: by 2002:a05:6000:22e:b0:236:6e38:4d9b with SMTP id l14-20020a056000022e00b002366e384d9bmr19602373wrz.4.1667483896976; Thu, 03 Nov 2022 06:58:16 -0700 (PDT) Received: from localhost ([31.111.84.238]) by smtp.gmail.com with ESMTPSA id bh6-20020a05600005c600b00228692033dcsm1240249wrb.91.2022.11.03.06.58.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Nov 2022 06:58:16 -0700 (PDT) From: Andrew Burgess To: binutils@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/2] MIPS disassembler styling Date: Thu, 3 Nov 2022 13:58:11 +0000 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-6.1 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_H2,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 List-Id: This commit adds disassembler styling for MIPS. Patch 1/2 changes the disassembler to make use of the assembler directives .word and .short. This isn't a requirement, but I think is an improvement. There's a lot of updated tests in this commit, it's possible that this patch might be too large to reach the mailing list. In case of this, I've pushed my work to the branch: users/aburgess/try-mips-disasm-styling Patch 2/2 is where I actually add disassembler styling. If patch #1 is not wanted then I can easily rebase this second patch, removing the use of .word and .short, just let me know. Thanks, Andrew --- Andrew Burgess (2): opcodes/mips: use .word/.short for undefined instructions libopcodes/mips: add support for disassembler styling .../testsuite/binutils-all/mips/mips-ase-1.d | 2 +- .../binutils-all/mips/mips-xpa-virt-1.d | 4 +- .../binutils-all/mips/mips-xpa-virt-2.d | 4 +- .../binutils-all/mips/mips-xpa-virt-3.d | 2 +- .../binutils-all/mips/mips1-branch-alias.d | 4 +- .../binutils-all/mips/mips1-branch-noalias.d | 4 +- .../binutils-all/mips/mips16-extend-noinsn.d | 24 +- .../binutils-all/mips/mips16-pcrel.d | 16 +- .../binutils-all/mips/mips32r6-branch-alias.d | 4 +- .../mips/mips32r6-branch-noalias.d | 4 +- gas/testsuite/gas/mips/interaptiv-mr2@mcu.d | 112 ++--- .../gas/mips/mips16-32@mips16-asmacro.d | 6 +- gas/testsuite/gas/mips/mips16-32@mips16-sub.d | 436 +++++++++--------- .../gas/mips/mips16-32@mips16e-64-sub.d | 4 +- .../gas/mips/mips16-32@mips16e-sub.d | 66 +-- gas/testsuite/gas/mips/mips16@save-sub.d | 68 +-- gas/testsuite/gas/mips/mips1@isa-override-1.d | 16 +- gas/testsuite/gas/mips/mips1@save-sub.d | 68 +-- gas/testsuite/gas/mips/mips2@isa-override-1.d | 12 +- .../gas/mips/mips32@isa-override-1.d | 14 +- .../gas/mips/mips32r2@isa-override-1.d | 14 +- gas/testsuite/gas/mips/set-arch.d | 208 ++++----- gas/testsuite/gas/mips/tls-o32.d | 4 +- opcodes/disassemble.c | 5 + opcodes/mips-dis.c | 306 +++++++----- 25 files changed, 751 insertions(+), 656 deletions(-) -- 2.25.4