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: 1888287 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DQnC5bb5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TGMcf3NXSz1yQ0 for ; Fri, 19 Jan 2024 12:35:13 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C66023858408 for ; Fri, 19 Jan 2024 01:35:10 +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+incoming=patchwork.ozlabs.org@gcc.gnu.org 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" } } */