From patchwork Mon Jan 8 08:40:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiang, Haochen" X-Patchwork-Id: 185843 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp897517dyq; Mon, 8 Jan 2024 00:44:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IFadR7y6oFHjxyZSCAwc5AoxZWktFEmJ8dPYPmfZ+4W4Q92jVZhCeKurKsI6d0Pg5t01muf X-Received: by 2002:a05:622a:15d0:b0:429:99e2:11f8 with SMTP id d16-20020a05622a15d000b0042999e211f8mr514536qty.33.1704703487766; Mon, 08 Jan 2024 00:44:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704703487; cv=pass; d=google.com; s=arc-20160816; b=Hfn/U8DC5vlU17PbMdJUsdHCb66H8J0UbTfXlVxDZL1qtMx2ZTHb4LZQZziTBEiqW7 dPMXOR6AbKBP+ZOLBTdWgI7pbCwZEZIIEqRfQALBT4qIIfYwjPzjV0oF/1r3zxjf9vC6 Sksr2vKYTnCjI2jL+R03U8gWgc8E/xafz1gjVPGupF7g0GG7XDyJRpH5bII3lHn1VtnD 7u0rtgF4oG5DHiOc6KSqCQ5ll+nX2k8oBLqiX6d9/8iii3DqQ0y6GX2aMXtJ2xRcQNOi V5qWrPwn8E9lUcfs1tzo5LEFGac4izw6zl9YfJAQpPkltEZSOyaHhxvKQLvJKCBKYxJJ 7qog== 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=wlz+ZAvMWyYTvVtp0A2vMIWq4V6YG7obCbKx0msbYVI=; fh=M9HM6ASxJ13myMyxe6+D5Y8nbneXlY5qT/Udj6S6pN8=; b=kUQ8SAWeBiG5jYtXgBRDwHFFlHE6RYeDmNgmJZmWX4ZnEZYlCPqGPBvenqXMsW74Xw +ffoiTvqONGhrDxggdtakrfOFE35F42qPs/C/+jNOfvLBJ7yJNQpwANJ2NXW9cXnB5u3 uMeEOli9uWk1n0Io/ld52pAdeToErQgIGT/+EgtPMQuGpv95xmAtRwUSFSUuvnKAsQpC en8595AN3ARBlHXLx/SZBTqANeKAAzy1PYm5W5vLysa2yfa2HhVNTJchacpnu9W39QQO l38QE0/OFccWb7Xzb/oZoomVFpRAdhiUuXpY3eAA/YIxfGSAebRB9iV2QOpihxXlpL7k IuKQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ll69uJ3s; 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 ey17-20020a05622a4c1100b00429971c5a06si1404600qtb.30.2024.01.08.00.44.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 00:44:47 -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=ll69uJ3s; 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 7417D3858288 for ; Mon, 8 Jan 2024 08:44:47 +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 E7B7D3858C78 for ; Mon, 8 Jan 2024 08:42:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E7B7D3858C78 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 E7B7D3858C78 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=1704703381; cv=none; b=bU64Wl3VjydgJYeU1HaVjiM6MjUk/1LrWz9qR4a3ncL7ACSoMs9RErY59cJnj9qKrLXdHa18IQWkz44k3bW4IN44Ei3dBIuyFeJcrHJMfT5CyDPWsxfU3Ce/USWKVQEZo4mhVtZJBb2vCrTzfZUTWCaXiaXEL7MIJ6Gxy0Qof5o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704703381; c=relaxed/simple; bh=AV59iBvDt0TcfwVUSgurR7+nLdph24rCEo7WQE+PIP8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Bg/JOYypJnKs09hCeBb+FTQdA7bxgDsgbtqsF/OnHMwl2qW2pTPqTX1tl6MB/wOm6wV50bKa9F3sdoMHGM7WLYt0+Aww2UdCRGR+UOuNVAaF4SFWxNqWNl9lmuKkgMhZpD3uPoukAJkhKyvK01nFWDoNoFFOBrhbadP7RH57Ikc= 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=1704703374; x=1736239374; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=AV59iBvDt0TcfwVUSgurR7+nLdph24rCEo7WQE+PIP8=; b=ll69uJ3sm9mnniKZ55brJa2rPaxZ8Ba8B2CPYonFT2vrFycspYHGT2o2 0U2xYEOVJc1IOTZMqvZv/gISl8kCiVajaavFMokbuB96hE8Ve0QgSKHCO QSgFqPchnJr1T0+ipBySaF7bo+9DsmezSiFqYWvlNXO9trJN48j8ZdHCB IBKY6fRlsoGCWLf7MDAUVJ7jnIv5+g9qxFToxMZQf4qA9nJiQVLilmMjM vEHTmJTeQijP9TcHtSP3lf1bVluZoT4T0QMdZRuJUZgLzcJOYk95f7E77 u3tPXjxFBbW1cyGXDIA+7FOrm8fu8gJWk639DSHDU77xIHCs+iR4DaMSs w==; X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="16424134" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="16424134" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2024 00:42:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="731044241" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="731044241" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orsmga003.jf.intel.com with ESMTP; 08 Jan 2024 00:42:50 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 9E3A6100512D; Mon, 8 Jan 2024 16:42:49 +0800 (CST) From: Haochen Jiang To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com, ubizjak@gmail.com Subject: [PATCH] i386: Fix recent testcase fail Date: Mon, 8 Jan 2024 16:40:49 +0800 Message-Id: <20240108084049.2591110-1-haochen.jiang@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 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.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: 1787511164434466891 X-GMAIL-MSGID: 1787511164434466891 After commit 01f4251b8775c832a92d55e2df57c9ac72eaceef, early break vectorization is supported. The two testcases need to be fixed. gcc/testsuite/ChangeLog: * gcc.target/i386/avx512fp16-xorsign-1.c: Fix testcase. * gcc.target/i386/part-vect-absneghf.c: Ditto. --- gcc/testsuite/gcc.target/i386/avx512fp16-xorsign-1.c | 2 +- gcc/testsuite/gcc.target/i386/part-vect-absneghf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/avx512fp16-xorsign-1.c b/gcc/testsuite/gcc.target/i386/avx512fp16-xorsign-1.c index a22a6ceabff..f5dd457c9eb 100644 --- a/gcc/testsuite/gcc.target/i386/avx512fp16-xorsign-1.c +++ b/gcc/testsuite/gcc.target/i386/avx512fp16-xorsign-1.c @@ -35,7 +35,7 @@ do_test (void) abort (); } -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */ +/* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */ /* { dg-final { scan-assembler "\[ \t\]xor" } } */ /* { dg-final { scan-assembler "\[ \t\]and" } } */ /* { dg-final { scan-assembler-not "copysign" } } */ diff --git a/gcc/testsuite/gcc.target/i386/part-vect-absneghf.c b/gcc/testsuite/gcc.target/i386/part-vect-absneghf.c index 48aed14d604..713f0bff4dd 100644 --- a/gcc/testsuite/gcc.target/i386/part-vect-absneghf.c +++ b/gcc/testsuite/gcc.target/i386/part-vect-absneghf.c @@ -1,5 +1,5 @@ /* { dg-do run { target avx512fp16 } } */ -/* { dg-options "-O1 -mavx512fp16 -mavx512vl -ftree-vectorize -fdump-tree-slp-details -fdump-tree-optimized" } */ +/* { dg-options "-O1 -mavx512fp16 -mavx512vl -fdump-tree-slp-details -fdump-tree-optimized" } */ extern void abort ();