Message ID | cover.1684918168.git.jie.mei@oss.cipunited.com |
---|---|
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2717126vqo; Wed, 24 May 2023 02:42:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mIhKtl/KgMAr3+pFSIuruRwfr1NFPNu+yOEOzKp1mr4Ok+E4fhEHBcUXhlQgpqiEABkhJ X-Received: by 2002:a17:907:846:b0:96f:4db5:df69 with SMTP id ww6-20020a170907084600b0096f4db5df69mr15472832ejb.23.1684921365585; Wed, 24 May 2023 02:42:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684921365; cv=none; d=google.com; s=arc-20160816; b=IAhyWbQdPkshae/spb1xSp6M2rD0damJzlCZTYVqQsUpWuJ4xklAuZMeX646oMoVtt Y10CuZA3iFuWSZxzTJQSfGTJAuVb3Fl5WCJnvyY7ZI7+XLY3vkQnOf1YWWmsSQUMKaup xmzFdYQyJtPTICLM9ns9jo0l6ZyIkOvmF1wKbOCha/UiXRBln2CoPnvRQ70yDQp0h/L7 q5VtXvvzb8L7uXb34t4jlX/FxzYFCKYTgNXkN8qL/aClUoXfI0T+Agy+icaJ+x4kYLSO mVJ9lmHqkenjjpETY3FTAQkzhBM1ENOkHV/QxncV+8Ei993oox90ch/84yHE111WvWVm zOPA== 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:date :subject:from:cc:message-id:to:mime-version:dkim-signature :dmarc-filter:delivered-to; bh=GQO+DtcDPb5KL2e/ZMGAcWPCGi6Ig9ajssYj/C2k8ho=; b=GgsUj+sZskntkbOITliatDdMzFYqmURD6mEnXJd1tIAF01m/OBQRiBpc/IQjEUXufn 1amTyMR4B9T0BreGX4A6/2VKZEZ/G22gT2xCFo5FxVhXfxTIf2beQdBCHWlWXRH7Q7S0 zRvuwkx7HWjtY0gJ+NFo2AGB6CMgn9Rml243PvaRImqewqQ+5yfzeSSp2qglDk0VQVNI m17tKNKL/Lh9fF5hEjLQIjKY+JLIEaMRG6GATqAo9TLc2UidT9Fb1iZJEGu6+kMgbefn lyHtnMIh7OiV20TXPIU/uXMXcN2YLwX5rzlGWWcPYx8TfyFjZ5CFU2fTonNj1OxeHlSu pYxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@oss.cipunited.com header.s=feishu2303200042 header.b=Z2uu3I8r; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id rn26-20020a170906d93a00b0095723b2b32csi1613638ejb.182.2023.05.24.02.42.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 02:42:45 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.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=neutral (body hash did not verify) header.i=@oss.cipunited.com header.s=feishu2303200042 header.b=Z2uu3I8r; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F4DA384645F for <ouuuleilei@gmail.com>; Wed, 24 May 2023 09:41:43 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from t03.bc.larksuite.com (t03.bc.larksuite.com [209.127.231.31]) by sourceware.org (Postfix) with UTF8SMTPS id C08CC3856DDC for <gcc-patches@gcc.gnu.org>; Wed, 24 May 2023 09:41:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C08CC3856DDC Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=oss.cipunited.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=oss.cipunited.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=feishu2303200042; d=oss.cipunited.com; t=1684921271; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=xAl0K3YzR3aQ51YCSmVK1A5c0UAbRbWEZMVkZY3Pk3U=; b=Z2uu3I8r8876RDdiJCq0P9g/da4W5WnFb2AT96RIT8w6EaAq1ALw8cnwbrddFszUZCFFpr MR1HJ4WmQqrKthD51J6oHodZUcP0WnFvkKjrXzYZ7bsiCOyDHfW2UgeqgTdwEdPFd5tsDa qFx7+RfRgsEibPk6Re8iTaT4DhHCuGvu4k/JscP3uz+nd0SfcVVad7idsPmFonur+b/3tN gWWQqhPtHmu3rbUZ4boWw8zhorzvxnilpOZUH9wwTWj3ecFrdhTzEd0C4QcGAfWoy7NcZt jcGmluYteZSE6OB7Di0gSR3mY9yBCnfAba1BLIaibmUdH+QnZs3bfLWEUavZBg== Mime-Version: 1.0 To: <gcc-patches@gcc.gnu.org> Message-Id: <cover.1684918168.git.jie.mei@oss.cipunited.com> X-Mailer: git-send-email 2.40.1 X-Lms-Return-Path: <lba+2646ddbb6+8bc906+gcc.gnu.org+jie.mei@oss.cipunited.com> Cc: "YunQiang Su" <yunqiang.su@cipunited.com>, "Maciej W . Rozycki" <macro@orcam.me.uk> From: "Jie Mei" <jie.mei@oss.cipunited.com> Subject: [PATCH v3 0/9] MIPS: Add MIPS16e2 ASE instrucions. Date: Wed, 24 May 2023 17:41:10 +0800 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_INVALID, DKIM_SIGNED, HTML_MESSAGE, KAM_DMARC_STATUS, KAM_SHORT, SPF_HELO_NONE, SPF_PASS, 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766768105975086035?= X-GMAIL-MSGID: =?utf-8?q?1766768105975086035?= |
Series |
MIPS: Add MIPS16e2 ASE instrucions.
|
|
Message
梅杰
May 24, 2023, 9:41 a.m. UTC
Patch V2: adds new patch. Patch V3: `%{mmips16e2} \` puts the wrong palce in first patch, V3 fix it. The MIPS16e2 ASE is an enhancement to the MIPS16e ASE, which includes all MIPS16e instructions, with some addition. This series of patches adds all instructions from MIPS16E2 ASE with corresponding tests. Jie Mei (9): MIPS: Add basic support for mips16e2 MIPS: Add MOVx instructions support for mips16e2 MIPS: Add instruction about global pointer register for mips16e2 MIPS: Add bitwise instructions for mips16e2 MIPS: Add LUI instruction for mips16e2 MIPS: Add load/store word left/right instructions for mips16e2 MIPS: Use ISA_HAS_9BIT_DISPLACEMENT for mips16e2 MIPS: Add CACHE instruction for mips16e2 MIPS: Make mips16e2 generating ZEB/ZEH instead of ANDI under certain conditions gcc/config/mips/constraints.md | 4 + gcc/config/mips/mips-protos.h | 4 + gcc/config/mips/mips.cc | 164 ++++++++++-- gcc/config/mips/mips.h | 32 ++- gcc/config/mips/mips.md | 200 ++++++++++++--- gcc/config/mips/mips.opt | 4 + gcc/config/mips/predicates.md | 21 +- gcc/doc/invoke.texi | 7 + gcc/testsuite/gcc.target/mips/mips.exp | 10 + .../gcc.target/mips/mips16e2-cache.c | 34 +++ gcc/testsuite/gcc.target/mips/mips16e2-cmov.c | 68 +++++ gcc/testsuite/gcc.target/mips/mips16e2-gp.c | 101 ++++++++ gcc/testsuite/gcc.target/mips/mips16e2.c | 240 ++++++++++++++++++ 13 files changed, 825 insertions(+), 64 deletions(-) create mode 100644 gcc/testsuite/gcc.target/mips/mips16e2-cache.c create mode 100644 gcc/testsuite/gcc.target/mips/mips16e2-cmov.c create mode 100644 gcc/testsuite/gcc.target/mips/mips16e2-gp.c create mode 100644 gcc/testsuite/gcc.target/mips/mips16e2.c