From patchwork Fri Jan 19 01:34:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: liuhongt X-Patchwork-Id: 189371 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp733610dyb; Thu, 18 Jan 2024 17:35:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IHoU3vfW8yToSRupr/usRAqLa+HBZc68//GIyleq9RItUQC4Xl4O0Xnpfx2pSwt+URTAR6B X-Received: by 2002:ac8:59ca:0:b0:42a:23e5:f208 with SMTP id f10-20020ac859ca000000b0042a23e5f208mr410506qtf.15.1705628137956; Thu, 18 Jan 2024 17:35:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705628137; cv=pass; d=google.com; s=arc-20160816; b=ReLNifjAb7b4l0H191auBmNXazZuDGuLa73uwWxIqF23FsPzErdndRpSABOqIoqaE5 GHsR0eoIN0RB1NSGs2yAgcs3aYMKlk/8zLC9MHvbyQGC+O5jnP74/J1mUO3mS5O+NpKo 3gcChhA9CJAaNpmdr7i4vl1UaZ0KGISSFFDVt0r4rHd4lC/NwIDxMuaQkn0W3Of1b5Gq kHw7iJ65aWL3dNoKma6n0yAVxHWyp5VvCLh9z7XuFqXKYiBs7RgSn0tOQJCe/5vG5dqz P3TrqsJan9Qpks6jSvUBXR9W12JJWqm04eeYdCJESmkZ/qQlOEn+MRSp9SQqRmcWdE4V r9Fg== 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:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=lIKXnz6c3D2U5JQ/TxyHja2lOQHAzSKhj6nPd7UT+Uw=; fh=ChXOctppJn0KECDRINafwUY5xHRufGHaa0Ju9pddrcQ=; b=E9fARPxmg+6oRPvu3GZWhcjbIV2kbbjvbmBW1zBdJG/p3Eun5PTesYR9kQeakDrWvx VehtH8Gyb3CVyLBSDlG/QT5GwRL/DOc44fCSonQ997F6GmL/wlDXlIWS4nqVe+r8eq4w b5DeR+wJa66WG/PXV1a5Oy1ignGaKaeTIUSx1DGiYI6hAdo0WbDoXzgIOKIrP+IUwMaG 6Gzugp6KKyUvjCKbLd+3Imu4Pf3od76jSKE2IxkkwTM2s3nbDsPIiBvC3LfXtE8StybN fLbq8EDAf7CuXbG+To1wkWM/Bd/t4Rohu9FbpahWsiM0RN2wPQ973jW6sUPCDeA1YVDI pYBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DQnC5bb5; 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 d4-20020ac85ac4000000b0042a14f94776si3417933qtd.331.2024.01.18.17.35.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 17:35:37 -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=DQnC5bb5; 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 A5FD23858C62 for ; Fri, 19 Jan 2024 01:35:37 +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 [198.175.65.9]) by sourceware.org (Postfix) with ESMTPS id A6CCC3858D33 for ; Fri, 19 Jan 2024 01:34:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A6CCC3858D33 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 A6CCC3858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705628089; cv=none; b=EkDNrpL8C8pyn/iRH4wmRoGk4E9Es+tUXNCktOJixoJ4bgAVYrvXO1FCxAn2iaUWyW3cdqP0sa3dOGzDecfgtCbctWE1SbWl6GYX2WQOwhwNb6rAZ9HZTrStoJODY/3ud+kytRYJlqHNPfTeN1hHBb4jToYRBAHSf9PfaNVhrXI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705628089; c=relaxed/simple; bh=J/k5TFahJGcLKxqfICR0Re0UyUzZfriofBCertwWy2M=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Pjcrb1in0Ihq7AegxFB9LQuXch4vSZfEJ4ydN1Uup/jDlO1X84ytRgEjiEE/8JYGAuZVp0DAxLw50sQW/e5UcQ5+kiV8U9l+wuqVoDajRziEMdvZlZLTDOhgrsuhBUcigygwv1HAXVIyc4iT01gYRY3rHbmPzmtC/snRO1O0Y1U= 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=1705628087; x=1737164087; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=J/k5TFahJGcLKxqfICR0Re0UyUzZfriofBCertwWy2M=; b=DQnC5bb5Nb9QJmZyAj+j4ItaDJx+4xi4M8j+o26STD4sb3BbDQbDFC3W WFPKWIQmTqqJ5n20nnjVX6e9WIe+Kjrgku93UkgZpGIw0JlgVOi+fsRan dUnMto1g9zAYWwdKYUPehMHNN1ARI39+yy1mwmtrim4fFj2p6GlXcCvvj NzPkpxIZyk7eQQdBn0w5gQTi0cFd6YgBshYhfFEjdQGpUeAO8WGICZdny brEhh/D0pvK5Z2GCVsquE0MXcDuWVMiJPE3zclqBLdXGRfA0iYDuJ2rlv wxLpcKSMALYVycxMKlIWPs9oOUD5wfGOdbtM0KhEk04aZUFW7Y1n1wExn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10956"; a="19214074" X-IronPort-AV: E=Sophos;i="6.05,203,1701158400"; d="scan'208";a="19214074" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2024 17:34:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10956"; a="908209023" X-IronPort-AV: E=Sophos;i="6.05,203,1701158400"; d="scan'208";a="908209023" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga004.jf.intel.com with ESMTP; 18 Jan 2024 17:34:43 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 668801005126; Fri, 19 Jan 2024 09:34:42 +0800 (CST) From: liuhongt To: gcc-patches@gcc.gnu.org Cc: crazylht@gmail.com, hjl.tools@gmail.com Subject: [PATCH] Fix testcase failure on many platforms which don't support vect_int_max. Date: Fri, 19 Jan 2024 09:34:42 +0800 Message-Id: <20240119013442.3268722-1-hongtao.liu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.9 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: 1788480730016140538 X-GMAIL-MSGID: 1788480730016140538 After r14-7124-g6686e16fda4190, the testcase can be optimized to MAX_EXPR if the backends support that. So I adjust the testcase to scan for MAX_EXPR, but it failed many platforms which don't support that. As pinski mentioned, target vect_no_int_min_max is only available under vect directory, so for simplicity, I adjust the testcase to scan either MAX_EXPR or original VEC_COND_EXPR. Commit as an obvious fix. gcc/testsuite/ChangeLog: PR testsuite/113437 * gcc.dg/tree-ssa/pr95906.c: Scan either MAX_EXPR or VEC_COND_EXPR. --- gcc/testsuite/gcc.dg/tree-ssa/pr95906.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c b/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c index d15670f3e9e..ce43983f341 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr95906.c @@ -9,4 +9,4 @@ v16i8 f(v16i8 a, v16i8 b) } /* { dg-final { scan-tree-dump-not "bit_(and|ior)_expr" "forwprop3" } } */ -/* { dg-final { scan-tree-dump-times "max_expr" 1 "forwprop3" } } */ +/* { dg-final { scan-tree-dump-times {(?n)(?:max_expr|vec_cond_expr)} 1 "forwprop3" } } */