From patchwork Thu Nov 7 03:03:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Hu, Lin1" X-Patchwork-Id: 2007818 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=Do+ObzH5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; 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 [8.43.85.97]) (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 4XkRjm1Yzpz1xxq for ; Thu, 7 Nov 2024 14:03:52 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DE43D3858C54 for ; Thu, 7 Nov 2024 03:03:48 +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.198.163.15]) by sourceware.org (Postfix) with ESMTPS id 6E4CC3858D20 for ; Thu, 7 Nov 2024 03:03:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E4CC3858D20 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 6E4CC3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.15 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730948604; cv=none; b=o9v//zn62L1JgEknvQzdnCu4wPMlxNrsPDpu28Hi/a0Idlti1by/khH3rEX8EneBWxSEvmHwB1Hr4a1/36yxsQs+0zM42Um2Wjoma7ZLcuHeGEB1F5wt5FdINuG9MunPTffQJ5DE0e0F7uteoip0eY1fJ9axrfT5JcWaompTUHY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730948604; c=relaxed/simple; bh=prZehQfkuXs9QM12yyTgkXaCFvvV/FFI9X2qqe/z+1c=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=sUNVfZXeKspovUobGRV/i9iQazuix3kFhbIKP/DlKPw+o2Eab8nst7FNoti5tSc1zqzGRERdEVYlA+tvut0iQfpRZmU7qHfnQmVgc8YnZSWYGWqiYoTEnpkqcnZY4zqbrIrXbyLVhKCPH0OxvqA2t+ohgw3v/dkYffEY5IM1gT8= 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=1730948603; x=1762484603; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=prZehQfkuXs9QM12yyTgkXaCFvvV/FFI9X2qqe/z+1c=; b=Do+ObzH5P+R8tBFoR2hGAHyVe10VjivEQE5yS3sHsrYWpcVz4srQbdpF J1h9+nKVJfvwhwleiZpt7Ze6oavXQ0TYriO6Lkxt1XOYSis7El1i/6oTy 9fbeQR+PKMS/ZH2DaXm3QOkNNmNs7MFeMa+vJ1swgJdJeIwPD1R6DfZZm P4hdlqwwuqgwFCHdV3i/YBSqu/cJMHUSRX8EnPBuC/hFPenetwIKC6W0/ pzNHMyZ+E1MLQ3k+OAgGzXr6esCD5YPyxbIPrQatPVUJzGSgpoXjA5+cQ T/ebo9wJNy0i72HaLQzrgUtgZr/3Ssq4rmrw+VfSVo8UhfTIuG03J0FH9 g==; X-CSE-ConnectionGUID: giPhHzNsSWaw0r6pakfi5w== X-CSE-MsgGUID: oI2wCoOZR4yrqBGoGtisPg== X-IronPort-AV: E=McAfee;i="6700,10204,11248"; a="30878181" X-IronPort-AV: E=Sophos;i="6.11,264,1725346800"; d="scan'208";a="30878181" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Nov 2024 19:03:21 -0800 X-CSE-ConnectionGUID: ebu4FV3hRCmwOGGbpTU4Gw== X-CSE-MsgGUID: miIR6saXT72y8JTnkiSL2g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,264,1725346800"; d="scan'208";a="115694505" Received: from shliclel4217.sh.intel.com ([10.239.240.127]) by fmviesa001.fm.intel.com with ESMTP; 06 Nov 2024 19:03:19 -0800 From: "Hu, Lin1" To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com, ubizjak@gmail.com Subject: [PATCH] i386: Add -mavx512vl for pr117304-1.c Date: Thu, 7 Nov 2024 11:03:19 +0800 Message-Id: <20241107030319.586526-1-lin1.hu@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 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 Hi, all Testing pr117304-1.c in a machine with only avx2 generates some different hints, so add -mavx512vl at its option list. Bootstrapped and regtested on x86-64-pc-linux-gnu. I think it is an obvious commit, but I still waiting for some while. If someone have other suggestion. BRs, Lin gcc/testsuite/ChangeLog: * gcc.target/i386/pr117304-1.c: Add -mavx512vl. --- gcc/testsuite/gcc.target/i386/pr117304-1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/pr117304-1.c b/gcc/testsuite/gcc.target/i386/pr117304-1.c index fc1c5bfd3e3..da26f4bd1b7 100644 --- a/gcc/testsuite/gcc.target/i386/pr117304-1.c +++ b/gcc/testsuite/gcc.target/i386/pr117304-1.c @@ -1,6 +1,6 @@ /* PR target/117304 */ /* { dg-do compile } */ -/* { dg-options "-O2 -mavx512f -mno-evex512" } */ +/* { dg-options "-O2 -mavx512f -mno-evex512 -mavx512vl" } */ typedef __attribute__((__vector_size__(32))) int __v8si; typedef __attribute__((__vector_size__(32))) unsigned int __v8su;