From patchwork Mon Jun 20 07:27:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 55185 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 AC27F38582A5 for ; Mon, 20 Jun 2022 07:27:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC27F38582A5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1655710067; bh=mBM929odAFOt3Xa28lPAOvXQSfuXux0vEvDYsFvsgGc=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=XFwHhGG0Wg205XmWSik3v9n1zeXO9WuRPMniAS6KAvy/Z/UIgwLq1gppiltvePlcW Ua1SjWDFHeqfBUDTiHGBSUoGjyNms6VqYnlyoGFmfWpoPbVh8HbKgiNJYwJM4jH7wB wzl2UNpJIMVV/1IjEo99zYsD1CdiCAX1J/xjMghw= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by sourceware.org (Postfix) with ESMTPS id C362E3858C51 for ; Mon, 20 Jun 2022 07:27:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C362E3858C51 X-IronPort-AV: E=McAfee;i="6400,9594,10380"; a="343819566" X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="343819566" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 00:27:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,306,1650956400"; d="scan'208";a="642987581" Received: from scymds01.sc.intel.com ([10.148.94.138]) by fmsmga008.fm.intel.com with ESMTP; 20 Jun 2022 00:27:16 -0700 Received: from shliclel051.sh.intel.com (shliclel051.sh.intel.com [10.239.236.51]) by scymds01.sc.intel.com with ESMTP id 25K7RFQQ009526; Mon, 20 Jun 2022 00:27:15 -0700 To: gcc-patches@gcc.gnu.org Subject: [PATCH] [x86] Replace REGNO with reg_or_subregno in pre_reload splitter. Date: Mon, 20 Jun 2022 15:27:14 +0800 Message-Id: <20220620072714.73825-1-hongtao.liu@intel.com> X-Mailer: git-send-email 2.18.1 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: liuhongt via Gcc-patches From: liuhongt Reply-To: liuhongt Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" The patch is similar to [1], but use reg_or_subregno instead of REGNO. [1] https://gcc.gnu.org/pipermail/gcc-patches/2022-June/596804.html Bootstrapped and regtested on x86_64-pc-linux-gnu{-m32,}. Ok for trunk? gcc/ChangeLog: PR target/105993 * config/i386/sse.md (sse4_2_pcmpestr): Replace REGNO with reg_or_subregno. (sse4_2_pcmpistr): Ditto. --- gcc/config/i386/sse.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 64ac490d272..083a7e8885a 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -23250,8 +23250,8 @@ (define_insn_and_split "sse4_2_pcmpestr" "&& 1" [(const_int 0)] { - int ecx = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[0])); - int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[1])); + int ecx = !find_regno_note (curr_insn, REG_UNUSED, reg_or_subregno (operands[0])); + int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, reg_or_subregno (operands[1])); int flags = !find_regno_note (curr_insn, REG_UNUSED, FLAGS_REG); if (ecx) @@ -23386,8 +23386,8 @@ (define_insn_and_split "sse4_2_pcmpistr" "&& 1" [(const_int 0)] { - int ecx = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[0])); - int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, REGNO (operands[1])); + int ecx = !find_regno_note (curr_insn, REG_UNUSED, reg_or_subregno (operands[0])); + int xmm0 = !find_regno_note (curr_insn, REG_UNUSED, reg_or_subregno (operands[1])); int flags = !find_regno_note (curr_insn, REG_UNUSED, FLAGS_REG); if (ecx)