From patchwork Wed Jun 14 00:01:45 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: 10735 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp898700vqr; Tue, 13 Jun 2023 17:02:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7s3i0ZX9akVYzd30UJAQ5ako/O/MNyNrDaVh8JON3I8B8yUWyOLO38+v341BQZow37IWfp X-Received: by 2002:aa7:d04d:0:b0:514:ab84:b72e with SMTP id n13-20020aa7d04d000000b00514ab84b72emr8733566edo.18.1686700921781; Tue, 13 Jun 2023 17:02:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686700921; cv=none; d=google.com; s=arc-20160816; b=ejJqNy64lrfbbeiC57XwdIFyidw11VP+qISC3daMfruTSuB6Sr9vhqNA8W9vBFWL1H yayX/hB1+xChQk57RPlxgIGEXBssQNOxgBGp9xJwyUrJe44TiCnIz0eoCLMA0d/NcQ1n CRGiRjDGpZFhT7ObI5yxr/fjHYUJ3Mc70ldL99T8xIrwvWRJK/OFLqJnxmG+ZIbc3d2E 5vRXPSrHu58fYbW1Uy0G4zzHerIqcQgEV4MaEjCZGcby5noJfCB/x17X+/oOZkcnQaXv GjavsD691myTUTDS6zaJSnjiWUfgFLPbitUE4qnh6l6/YxGwwKkr+n37shbFdmDUQ3s+ VdDw== 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=yebaYvB9jPd0xYQrTqP/CAmI/6JLfcCLkm3Ms5lXveE=; b=wztiu5SwyscWkq9YN79Sg4fhtceOJWiF6P01OcVoN0YMOx3kLxu2L4MzpUjhMmODvV LF1tRT3Lv6rDPwZRMwbZ9jpaOCUGH+aQkSDfTsSU3FChyewF+CAD3cCFsGAH7e9WkooS JjCBtWR39bf+c/nmpLyg+bsEQl237rhrf/84tF0HFlE2jIt22d3y91kup6hIinnktLIK 3BaKJCKxQoFrgT+9lRHza2UuV9yerxVc5Ei2uXtNoYZYhkX9DNnbUQ95f0V7SBeffrrp hOasya6UnIbDFwFQDZkaWE35HnW9scpR3baf7iAi/hIh9EpqLFBwtmHNO3d7hT1PVcH6 hg4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@davidgf-es.20221208.gappssmtp.com header.s=20221208 header.b=su50ARTk; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id s24-20020aa7cb18000000b0050bd191f4f1si3693887edt.32.2023.06.13.17.02.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 17:02:01 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@davidgf-es.20221208.gappssmtp.com header.s=20221208 header.b=su50ARTk; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 3483A385802F for ; Wed, 14 Jun 2023 00:01:58 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by sourceware.org (Postfix) with ESMTPS id 4A95E3858D38 for ; Wed, 14 Jun 2023 00:01:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4A95E3858D38 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-lj1-x230.google.com with SMTP id 38308e7fff4ca-2b1b66a8fd5so1178791fa.0 for ; Tue, 13 Jun 2023 17:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidgf-es.20221208.gappssmtp.com; s=20221208; t=1686700910; x=1689292910; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=yebaYvB9jPd0xYQrTqP/CAmI/6JLfcCLkm3Ms5lXveE=; b=su50ARTkIF7lXE/hURS+RluUXUNogxFyHWQNyTZI1+S+ugxdnlpEZ19U8OQoqDYITd kmjsL4bX3b23PJQAxhFs/858pn28q4xJlWzVMpJZczU2+1Twvpon67jWAOfSlNpye6FF RR/hcjlH64JJfrC9sY0t2PQcZxXVkFMC5Hwtw38Q3Ay7VKafub084kExiNuLWfvwbjwd LlorLIoaDgmRorPRANRBlxKWl0whPQSrWWrO/T4qUNw/6r4D2S9h3bDS4nBpQlgT3RJs FPqbFXqmxt6wm+bmhnOUAlWHgFe3/ZR/N59pk8ftoE+UuWvUFFopVqG0e3XrDZXD6APy XDPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686700910; x=1689292910; 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=yebaYvB9jPd0xYQrTqP/CAmI/6JLfcCLkm3Ms5lXveE=; b=WWByYAPhv3KsRb0/YvHqqV3Lx2sXnc2GUmbL/QR+QL6SXzq8H1CRCe+ixZgpN+fKqf U4eFDptEs+wtJBHCCks+cKXB9qjHTsEpA/R2IXhxD+Qk3RHkoSOdlSX7Ge4wJE1HL8+f dzs825o9pYg0l8NFGyQyvRvrENUyz4ukd9yF/tSTgd0wmMXe2szAAGaueqUTjjRLdbC1 jczlvwk7xx3WKeUfSzsVwRIkN5uZ7kp+vg2Y274bQ20wByEn8dAmbgd6w3rbydikE72H godpIXSwiJ11M0zVSssJtJ7sSZQJYixzeYbjU7JypilbbVl/0J5K+BNbeQXwi2INk+kS fs/A== X-Gm-Message-State: AC+VfDyfDPN1nVPIiomBJb931d4gTW+PK3Rb5E/itCusGQLlpB4EsefW sPMT8y61Fc8xzsqXT11+4Z9obxh5g9vKfAG38A== X-Received: by 2002:a2e:8e81:0:b0:2ad:9783:bca with SMTP id z1-20020a2e8e81000000b002ad97830bcamr5400998ljk.27.1686700909679; Tue, 13 Jun 2023 17:01:49 -0700 (PDT) Received: from localhost.localdomain ([37.17.237.79]) by smtp.gmail.com with ESMTPSA id p17-20020a1c7411000000b003f7e4639aabsm15726702wmc.10.2023.06.13.17.01.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 17:01:49 -0700 (PDT) From: david@davidgf.es To: binutils@sourceware.org Subject: [PATCH v2 0/3] Add support for MIPS Allegrex Date: Wed, 14 Jun 2023 02:01:45 +0200 Message-Id: <20230614000148.10989-1-david@davidgf.es> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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?1768634105709231052?= X-GMAIL-MSGID: =?utf-8?q?1768634105709231052?= From: David Guillen Fandos Please check out the second revision of the patches. I addressed all the comments in the review and ran the testsuite. There's some tests failing due to other changes unrelated to these patches. David Guillen Fandos (3): Add MIPS Allegrex CPU as a MIPS2-based CPU Add rotation instructions to MIPS Allegrex CPU Add additional missing Allegrex CPU instructions bfd/bfd-in2.h | 1 + include/elf/mips.h | 1 + include/opcode/mips.h | 6 + bfd/archures.c | 1 + bfd/cpu-mips.c | 2 + bfd/elfxx-mips.c | 8 + binutils/readelf.c | 1 + gas/config/tc-mips.c | 10 +- opcodes/mips-dis.c | 3 + opcodes/mips-opc.c | 107 +++---- gas/testsuite/gas/mips/mips.exp | 46 ++- gas/testsuite/gas/mips/allegrex.s | 47 ++++ gas/testsuite/gas/mips/allegrex.d | 50 ++++ gas/testsuite/gas/mips/allegrex@c0.d | 265 ++++++++++++++++++ gas/testsuite/gas/mips/allegrex@c1.d | 265 ++++++++++++++++++ gas/testsuite/gas/mips/allegrex@c3.d | 5 + gas/testsuite/gas/mips/allegrex@cp0b.d | 5 + gas/testsuite/gas/mips/allegrex@cp0bl.d | 5 + gas/testsuite/gas/mips/allegrex@cp0c.d | 5 + gas/testsuite/gas/mips/allegrex@cp2d.d | 5 + .../gas/mips/allegrex@isa-override-1.d | 29 ++ .../gas/mips/allegrex@isa-override-2.d | 4 + gas/testsuite/gas/mips/allegrex@save-sub.d | 5 + .../gas/mips/allegrex@isa-override-2.l | 4 + 24 files changed, 815 insertions(+), 65 deletions(-) create mode 100644 gas/testsuite/gas/mips/allegrex.s create mode 100644 gas/testsuite/gas/mips/allegrex.d create mode 100644 gas/testsuite/gas/mips/allegrex@c0.d create mode 100644 gas/testsuite/gas/mips/allegrex@c1.d create mode 100644 gas/testsuite/gas/mips/allegrex@c3.d create mode 100644 gas/testsuite/gas/mips/allegrex@cp0b.d create mode 100644 gas/testsuite/gas/mips/allegrex@cp0bl.d create mode 100644 gas/testsuite/gas/mips/allegrex@cp0c.d create mode 100644 gas/testsuite/gas/mips/allegrex@cp2d.d create mode 100644 gas/testsuite/gas/mips/allegrex@isa-override-1.d create mode 100644 gas/testsuite/gas/mips/allegrex@isa-override-2.d create mode 100644 gas/testsuite/gas/mips/allegrex@save-sub.d create mode 100644 gas/testsuite/gas/mips/allegrex@isa-override-2.l