From patchwork Mon Oct 9 02:03:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongyu Wang X-Patchwork-Id: 149806 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1610926vqo; Sun, 8 Oct 2023 19:05:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHjgUSc/ceGJgE2Z8/0VbW/nwVMSGchJ57IlxGhiyRZwM6mprWzkc/H09ceELaw1lU6Vidz X-Received: by 2002:a05:6402:6d4:b0:533:4c67:c911 with SMTP id n20-20020a05640206d400b005334c67c911mr12762588edy.19.1696817139597; Sun, 08 Oct 2023 19:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696817139; cv=none; d=google.com; s=arc-20160816; b=llYjtchdwnbnojRtAcxDfumf3ZW9VbhF81eySy1yYcDLwNe3xvqqzNwBMLAnGjFz2V nAQ7oHuv/xb0SRtg7dGkQ7MioyTcdGtmSNGkuhgmxh+4XyEBFxDkciBxnXK8FqY8e6jX 5eYA3r1UFJeEKOt6PabiodSfvvR0WInk8bTEaKCgiIichqSb16APeZh2Lr5SFqFB79BB Ib/kcMIGgoPzREdrTLTNxl+eFGQdA0hTDGsWoensCQhB8pW/NqzhBQmzm0kz7mmp8SXC p1lkLeuXC4yJCGj/Gnw7Ajm5VUxeEbf6fHYhDnTrKSfuJdJBgD1Yfqv09KGpJcKmUD5L VyBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=wiSLVJng0g+Li7WKhNCwjPZnIN/l4s7EWDvnTjvqg4w=; fh=teAkCfp8/+jdw+9cwKK1bUX4dNiR8PY1y3wBzpNarjY=; b=Yi/PU2TvF3EC0a2gGmJRcGc7Sr48AdhsH3mnwy7XPUibW3DuN56zBAJ/HrppNS1dPR xUZz0a/Lm35l7itPlDjFJXbWCfXn3nwWAdej4buwekbE9W/fWuEmJAXxKOmjTnF5VVmx M7ujKpJn64vZWfxD+pPtP/hVConHEFGJP+wBmftYSfQobkE1bMAFLUKqdHi7RbOPsg3j PQrVQxvAQLdWGHmeL5ZnEnkqDaoETSnBhZdd0ZSmf3NdOWGYJfN4LXKZlYqwFb3qh0p6 SkOa/i+upnI/WYuvQRw+EU+xJH3UP+jfP2XUDIVstAUZJkLr48hq9CvNdN9mmYm6sUSE ZMZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SsmexbP9; 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=intel.com Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d8-20020a05640208c800b0052545f962cbsi4109922edz.640.2023.10.08.19.05.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 19:05:39 -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=@intel.com header.s=Intel header.b=SsmexbP9; 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=intel.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C7A1F3858434 for ; Mon, 9 Oct 2023 02:05:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by sourceware.org (Postfix) with ESMTPS id 01AF83858D28 for ; Mon, 9 Oct 2023 02:05:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 01AF83858D28 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696817108; x=1728353108; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=m5kBCawfAXAlrY5SlADIzxiSeqWSxMPMLI42DG2NKf8=; b=SsmexbP9vxBezDq5zPDW2Jt5AvX9NqexP+d7IGrhPY2qOZT/98EsYbzT x8rjiJfmbDQJpSjLp7KwaZC9bi51DGLkIjJCmzeCuzUi6bH5f6cO+VbdR ptz4Il8ndoyL5HgcmcVCk0ZmbtybHrLZXv8x2YDy5aFLboqlSMKq9ABmP znXcznzuZ2IC6vRbOFKy5PS7xisHl6T5FjLpYvWopNzrpDTYkMMAPSzGY kZnVMR8MJ59Jx76ALaid1+Ir5jrRFQlEeQUDaMH2QudbNf2SRAlBOevTt ceVz16qFq8mNh69f88RbiYGOy8WuOWYl4Uj7AGKMUrbeVlSKguTefwqVS g==; X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="381315174" X-IronPort-AV: E=Sophos;i="6.03,209,1694761200"; d="scan'208";a="381315174" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Oct 2023 19:05:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10857"; a="746502687" X-IronPort-AV: E=Sophos;i="6.03,209,1694761200"; d="scan'208";a="746502687" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga007.jf.intel.com with ESMTP; 08 Oct 2023 19:05:02 -0700 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 4623C1005668; Mon, 9 Oct 2023 10:05:03 +0800 (CST) From: Hongyu Wang To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com Subject: [PATCH] [i386] APX EGPR: fix missing pattern that prohibits egpr Date: Mon, 9 Oct 2023 10:03:03 +0800 Message-Id: <20231009020303.929293-1-hongyu.wang@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_NONE, SPF_SOFTFAIL, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779241728731250873 X-GMAIL-MSGID: 1779241728731250873 For vec_concatv2di, m constraint in alternative 0 and 1 could result in egpr allocated on operand 2 under -mapxf. Should use jm instead. Bootstrapped/regtested on x86-64-linux-gnu. Ok for trunk? gcc/ChangeLog: * config/i386/sse.md (vec_concatv2di): Replace constraint "m" with "jm" for alternative 0 and 1 of operand 2. --- gcc/config/i386/sse.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 6bffd749c6d..58672f46365 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -20638,7 +20638,7 @@ (define_insn "vec_concatv2di" (match_operand:DI 1 "register_operand" " 0, 0,x ,Yv,0,Yv,0,0,v") (match_operand:DI 2 "nonimmediate_operand" - " jrm,jrm,rm,rm,x,Yv,x,m,m")))] + " jrjm,jrjm,rm,rm,x,Yv,x,m,m")))] "TARGET_SSE" "@ pinsrq\t{$1, %2, %0|%0, %2, 1}