From patchwork Fri Nov 17 00:09:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 165964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp201772vqn; Thu, 16 Nov 2023 16:12:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfsYJ3AS6/QhoGDklJQudFlmrg1aNvFeIBbO4QPrXoihYEir4NjKfG5ySuV3ASMsqG0o1s X-Received: by 2002:a05:6358:41a1:b0:16b:c53b:4eec with SMTP id w33-20020a05635841a100b0016bc53b4eecmr11718440rwc.25.1700179925671; Thu, 16 Nov 2023 16:12:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700179925; cv=pass; d=google.com; s=arc-20160816; b=wBQa+dP5BGMnxVvc0DQXS/QE1/G5VVttsaRZ3zxmaBbzhys/1EfpiUpXqAi5AjdPj4 ufEWL+kw7OeWT5oO4N5DiNV8cK6RvgnzbKMKQCl/GtTR/RsYsqOPmHeZcaB2j57SF1xL vWmGFM7+8/OMJb1nGtXSeLBNCYeId/G1gTvnQ7y6VNvriYs4eYWG/ia2aZS8Toge+w5/ uGeZ09lg9guhIQE+RNGJh5+vV9g9TjeTWlPv0N1sQPIA1XOU6OpLgKQ/l+Q6roxsCnSL 0ZZgVog1k1zUKBsRNx0QAPBKxKh8kySY4Rk/fFFwCeDSWZ4qz1KcSIMNVrw0Kk8IN9Z3 DrkQ== ARC-Message-Signature: i=2; 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:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=3jWE1n2MJBHlrEUl4Glwxg2nTXv5kdVs9CC/7nc2Ig4=; fh=ChXOctppJn0KECDRINafwUY5xHRufGHaa0Ju9pddrcQ=; b=zGlAU6h13UUMCyUdh8opmq7tyjhIL30EH1nPBS+3RqxynzWLnNPjLV58cEy27YqvuV ZiEsHa9nKEUUhsvetwfGTdbQPH7jDjsLZtX1PfvMZdMeplYPLFze1W/ic/bgTSoE76Pu JZNjNngOLLPoL+rK4FSqjW/H+5TzxIp2t1a25cYnhX5wOXuureO391H+e5SrsI8EXO3l ab3nwGw41xPmMuvLgRhFtSxe0/zp86mgsfsr/gml4xw53LZ04DBN3FqEEOIv7HlXWVrj 6pxxGIzHF7ZaFsmIvEkqWYG7Op7HFGLVNLeOT3hIbJz4WbrcW3azuKhzRzAtkE1J6zXH SMIw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="MOOrcnJ/"; arc=pass (i=1); 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 (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d15-20020ac85acf000000b00421a18c974asi529219qtd.251.2023.11.16.16.12.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 16:12:05 -0800 (PST) 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="MOOrcnJ/"; arc=pass (i=1); 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 50B363858D37 for ; Fri, 17 Nov 2023 00:12:05 +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 [134.134.136.100]) by sourceware.org (Postfix) with ESMTPS id 4CD593858D28 for ; Fri, 17 Nov 2023 00:11:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4CD593858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4CD593858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=134.134.136.100 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700179899; cv=none; b=Q9pRmLa39+p1vno1L+PqZF3OlGGfCGew2HDuD4TsVCp6IhylbgeRGqrE1YGla74slu9AzOALddMT6qcuPBknWZCmcyrTiP/q7cw1Wuno63LgUQSGRUglhAG/DvwUitzF69a6je3GM5FzIr7XHgUm55makvH6BVXbLPVOu3vhAh8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700179899; c=relaxed/simple; bh=VnojP8rNAnBBHARYsJKGMXk7OdbicENFA9SqaewJwAY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=WByc2+qiFBjU1cIFlDMG9MQii8f3BmxiQ8sqp9QuhGQxfqbqwYcR93yHLAo/86pBEMbeIkKISP7AunebYS/9fhvHiGL0b8gsyQkf453us/cY9n9YH1mcPBNAZCEUYF4eoidx19P+AzAltXmlUybwWQQ0Mfc/luOH9MnaPn/TJDA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700179898; x=1731715898; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VnojP8rNAnBBHARYsJKGMXk7OdbicENFA9SqaewJwAY=; b=MOOrcnJ/uGGZqZh9IAgQkIVPS77/dHRGyVBnr6HuczzFHq2GTfSvYvRC 7L79WILoLmTHAtla++dPcTZSWZpQaX2TLZzGjGSotmS/KphhA+7KO7zNJ D9VcZNB18QHnMzk6BBsQDdtgLpMSzVZHL7w3otK7ge8swyFxpvFhferWO X+nTaKNCCTgYerla4Ze2ObISiqCbZM7FMJc0MbYuNyyp/AkH6Z84gFAFu /+BHQZ2Q8JhYyuC5cfkD3caxm0omyjhT69WKzykIcVGxgXHMpmy1MuzG5 7k4TQx8YcalzvCM0WBt0Wy+2HKI04dwG/ZoWqJjOZuDW0qGUAoYdD3nm0 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10896"; a="457705755" X-IronPort-AV: E=Sophos;i="6.04,205,1695711600"; d="scan'208";a="457705755" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2023 16:11:36 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,205,1695711600"; d="scan'208";a="13724762" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmviesa001.fm.intel.com with ESMTP; 16 Nov 2023 16:11:35 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 93871100567C; Fri, 17 Nov 2023 08:11:34 +0800 (CST) From: liuhongt To: gcc-patches@gcc.gnu.org Cc: crazylht@gmail.com, hjl.tools@gmail.com Subject: [PATCH 2/2] Add i?86-*-* and x86_64-*-* to vect_logical_reduc Date: Fri, 17 Nov 2023 08:09:34 +0800 Message-Id: <20231117000934.2301995-2-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20231117000934.2301995-1-hongtao.liu@intel.com> References: <20231117000934.2301995-1-hongtao.liu@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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.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: 1782767865582436266 X-GMAIL-MSGID: 1782767865582436266 x86 backend support reduc_{and,ior,xor>_scal_m for vector integer modes. Ok for trunk? gcc/testsuite/ChangeLog: * lib/target-supports.exp (vect_logical_reduc): Add i?86-*-* and x86_64-*-*. --- gcc/testsuite/lib/target-supports.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index b6a2e4fd096..30dd39508f8 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -9257,7 +9257,8 @@ proc check_effective_target_vect_call_roundf { } { proc check_effective_target_vect_logical_reduc { } { return [expr { [check_effective_target_aarch64_sve] || [istarget amdgcn-*-*] - || [check_effective_target_riscv_v] }] + || [check_effective_target_riscv_v] + || [istarget i?86-*-*] || [istarget x86_64-*-*]}] } # Return 1 if the target supports the fold_extract_last optab.