Message ID | 1659667327-24452-1-git-send-email-apinski@marvell.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:b5d6:b0:2b9:3548:2db5 with SMTP id v22csp769149pxt; Thu, 4 Aug 2022 19:43:03 -0700 (PDT) X-Google-Smtp-Source: AA6agR7gFSwliFM8yhEjckKcgwye+VZ6F+NzO0gCkMlg2Y55zLwRqtkJE1a2LhD1airQi2VC1bk1 X-Received: by 2002:a05:6402:2992:b0:43b:7929:475b with SMTP id eq18-20020a056402299200b0043b7929475bmr4676841edb.58.1659667383585; Thu, 04 Aug 2022 19:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659667383; cv=none; d=google.com; s=arc-20160816; b=xapZdeK3GjNSRL8wLn0GA5Fst61W0Ro8XkIJLxRo0r0k7jUsR8jrd1zQANzmrpa65e 7RHyT5b9fPTcwKTFClMU1034XLlUgBul1bBFH67cA0l2GAYFkQl9+k2c307bcScmoJx5 9MkmGtbtN00O9YIfIibrfjj5djTiEn6CzfevWBPQOHSjBA6p8iIkAqaE+yTGEHUPszIf nKof5ViKb8vKTr6s/sSuLnqPfKqVdnhnjYe1fDRUIEg1gdIJFs9oFJ21n3vJpaf0Ejn4 6SFt1o+YfTnueapHs7Ck4yYWkSrL2NKiY5XkbtYhdhQ3MjQOG82b3JsWkVU2ygdzESyK oXfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:message-id:date:subject:to:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=EtbzoOQkoSSW1SsZVg8q2Q2LjfauybiUEgA1BLDlROE=; b=riXd8aFOMEanWmGtdAbA5j5yynuRkh21fA+KyD60eSGEcdCiwwRfGPGNkkF3PQO/nf x+e/LCJAB8RwMD5eFVcXn/15tOohvmyzsbqWyfyqpSaqdNQRc2pZp/aNRMRyWLZZrVFq n+vetgj+l08/ZHYzJHMAJYF0reJTTh8fr/pO9MTc1lgrIKh7JRg7F37GS3yOGCXUdhp2 jNDEivpG+dLINtGa8aYtyR5cePTYouvOts/6uvvZu9RQ03EkaGk433EXvUd1UP+rG1OX TL7i1ZBKPllCqBVkGrVt/vsv4Ya6Q0I2BX3Uf2WdZIOTy5S0sTQQ3Iso7GfrhzQ9je3V 2r5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Kf6cvBSC; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id e9-20020aa7d7c9000000b0043d1d2bda9bsi2512027eds.92.2022.08.04.19.43.03 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Aug 2022 19:43:03 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=Kf6cvBSC; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 747263857B8A for <ouuuleilei@gmail.com>; Fri, 5 Aug 2022 02:43:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 747263857B8A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1659667382; bh=EtbzoOQkoSSW1SsZVg8q2Q2LjfauybiUEgA1BLDlROE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=Kf6cvBSCVjFgu+4018XJqQkqnEYeRj3QqCXyfmys23qOb+4DxTmufaT7VpH63SSrE J1XcWYBDKu/OKDTnSLBCBfEe3k8soFeD06Y23+yjgCA/2efMdjhgArE+CEecINFMRv eHH0nrTuxQyT1OhzRz8uAikrnucOCUg3+i4bDmlU= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by sourceware.org (Postfix) with ESMTPS id 53A973858418 for <gcc-patches@gcc.gnu.org>; Fri, 5 Aug 2022 02:42:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 53A973858418 Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2750Onj6011074 for <gcc-patches@gcc.gnu.org>; Thu, 4 Aug 2022 19:42:18 -0700 Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3hrg4cje8b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Thu, 04 Aug 2022 19:42:17 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 4 Aug 2022 19:42:16 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Thu, 4 Aug 2022 19:42:16 -0700 Received: from linux.wrightpinski.org.com (unknown [10.69.242.198]) by maili.marvell.com (Postfix) with ESMTP id A5DC33F709F; Thu, 4 Aug 2022 19:42:15 -0700 (PDT) To: <gcc-patches@gcc.gnu.org> Subject: [COMMITED] [RSIC-V] Fix 32bit riscv with zbs extension enabled Date: Thu, 4 Aug 2022 19:42:07 -0700 Message-ID: <1659667327-24452-1-git-send-email-apinski@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: o16-j4XdWsTo7vVeP1ARQ61C0XQ4uZBI X-Proofpoint-ORIG-GUID: o16-j4XdWsTo7vVeP1ARQ61C0XQ4uZBI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-04_06,2022-08-04_02,2022-06-22_01 X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: 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> From: apinski--- via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: apinski@marvell.com Cc: Andrew Pinski <apinski@marvell.com> 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?1740287386356244109?= X-GMAIL-MSGID: =?utf-8?q?1740287386356244109?= |
Series |
[COMMITED,RSIC-V] Fix 32bit riscv with zbs extension enabled
|
|
Commit Message
Li, Pan2 via Gcc-patches
Aug. 5, 2022, 2:42 a.m. UTC
From: Andrew Pinski <apinski@marvell.com>
The problem here was a disconnect between splittable_const_int_operand
predicate and the function riscv_build_integer_1 for 32bits with zbs enabled.
The splittable_const_int_operand predicate had a check for TARGET_64BIT which
was not needed so this patch removed it.
Committed as obvious after a build for risc32-elf configured with --with-arch=rv32imac_zba_zbb_zbc_zbs.
Thanks,
Andrew Pinski
gcc/ChangeLog:
* config/riscv/predicates.md (splittable_const_int_operand):
Remove the check for TARGET_64BIT for single bit const values.
---
gcc/config/riscv/predicates.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/predicates.md b/gcc/config/riscv/predicates.md index 90db5dfcdd5..e98db2cb574 100644 --- a/gcc/config/riscv/predicates.md +++ b/gcc/config/riscv/predicates.md @@ -76,7 +76,7 @@ (define_predicate "splittable_const_int_operand" /* Check whether the constant can be loaded in a single instruction with zbs extensions. */ - if (TARGET_64BIT && TARGET_ZBS && SINGLE_BIT_MASK_OPERAND (INTVAL (op))) + if (TARGET_ZBS && SINGLE_BIT_MASK_OPERAND (INTVAL (op))) return false; /* Otherwise check whether the constant can be loaded in a single