From patchwork Wed Jan 10 07:34:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiang, Haochen" X-Patchwork-Id: 186708 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp634010dyi; Tue, 9 Jan 2024 23:35:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IESQ9zuau/VbaxuXaSqqbdY/kQtAqu/1NroNhzTwpNk42WNvjTxRHRV728GV+W7JGkdwsQ8 X-Received: by 2002:a05:6214:20a1:b0:680:fa59:f5df with SMTP id 1-20020a05621420a100b00680fa59f5dfmr724945qvd.119.1704872148557; Tue, 09 Jan 2024 23:35:48 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704872148; cv=pass; d=google.com; s=arc-20160816; b=sb4Lre1zDtPeEj8KyLoZnh1V2lv8YWSgS23eX9UFqxSsJau+SySFiE9bpwzYqBQXkx fIlS7BybcEk99LyV+sl97V538kcAnbhFnJB4Pf5V285DF4fYNSZ6kKmYlJY3xqYzFvyb AReftA2gnpRKr/t53OT2VLH37ZpgtAsvJfyKbvBtNEpora8Nv6ltcP5A1XolOhCi7lO6 4CJy9V3DZrvT4tHbhN+tOFPhuAbGHSeog402rtL80TXGjbp0jHljiXkHLZeczXGnonpy CBLH/yi5Y6HEW15F6zWxYnU/cFF7qI2JakRzUz4dLereHnxUpP0zzfui/kGejpvOpNvU wjXQ== 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=crk5re6gO7PW+frqQ9+zKNBauwdwKJLfeG8CA9HZdAY=; fh=rc4NIX+vUh0HKub35r1/nJO7i88iewvqzu44u1gj9hQ=; b=LzcW3ggJeSwceUtz6pGpYHnfFtWF5tuDFoYHzqhA9Fj2GYgI2RYtL+4pLUrDOsCZb3 FAzZm8ti2roPhLJmsqM1TaoHFxzWjQLuxDK0MxrpF+WwazthS+MfNQECkTFi7DvWS7kv wuAGnGoX3Z46wJd8e0oj46rpMhQKElVBmkV6f0QRnFYIAsgYAxcoWvX5/OsUS5esqsjv htCidZbjfLZYvjAmGf0nQVzletU+ZaJYT6f4xPfLZnw2V7Ad+/2S37O4EsyaJuBpU4q9 3iQvWo43uW3s3/gbm5/L5wZ7S4cjRJIrbp8W4HmEhFiMr38JJ1cWrF761Rd2xwA7hLGJ 4wjA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WyOzaF/u"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id r3-20020a0cc403000000b0067f9474ef53si3918673qvi.368.2024.01.09.23.35.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 23:35:48 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WyOzaF/u"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c 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 45545385841C for ; Wed, 10 Jan 2024 07:35: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.9]) by sourceware.org (Postfix) with ESMTPS id EE1BF3858C52 for ; Wed, 10 Jan 2024 07:34:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE1BF3858C52 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 EE1BF3858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.9 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704872102; cv=none; b=esxqXvB26Htiw71c0ixEHVMtbla/SUBcZy5dmBSr2ZPUmgUgAwzv2rF9KWOMCviX+x83mJexI6ZJMAJIjpQkGeqdESam4FrQLQ/LyLSj5dCm22o78p7MOJoJWtj89s7uqV1BwHgCM1DddaloDaiag21V7yJ1gyC9Tuh1dpIdWag= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704872102; c=relaxed/simple; bh=I87+sisYf2/h65lC2i8EMsXu9oNZO8yJ5rLSoHp2v8o=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Wth8w/SLPfSs+p/Se3ngW1GukssCeS+WGEJjLrWiA0+CHBXH1X/OhpWRHNI0hja23YUfEOOJdf6eTb8UZdJOPxSee6puyxGuk3JUQEO70Me5XHZAlzyPTXg8xTan8Vwz4W0yht9RfHDJUNncCuz+RCv5MR0lFIzY0eNwdQsZcmM= 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=1704872100; x=1736408100; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=I87+sisYf2/h65lC2i8EMsXu9oNZO8yJ5rLSoHp2v8o=; b=WyOzaF/uXkpKPNnA5jReEU8KuFD9gsbbon+y/lJhfQSBtMD9irNld/sY cK8jCwia8gpW/ZBwuCXHwY/q6fn767HyTo6YGoy8Jt3CL3vnFP1dv5+eG y85O9MxLtNdza4rtGpjlqf9ozobolwWTPa4+G17Ryo6QoqXCn7HeNnSHw oFcC9s2soMUhbGRWAETuxjLDMFQkr3mBHZfY3H/OA3X/I7JA4a778/bJQ H/byZSdTsVFd9vk4QU4XlKzoaYVTQ59xLHyQ/ETFewLgYxdu2J1h1ruom 5KJ8esXYiozdfK37PRcEl3bNToB89FjUccpkKNwYvJKZCgFo+RBZc7M29 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="5208428" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="5208428" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 23:34:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="23856785" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by orviesa002.jf.intel.com with ESMTP; 09 Jan 2024 23:34:56 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id 349D110056EF; Wed, 10 Jan 2024 15:34:55 +0800 (CST) From: Haochen Jiang To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com, ubizjak@gmail.com, burnus@net-b.de, sandra@codesourcery.com Subject: [PATCH] i386: Add AVX10.1 related macros Date: Wed, 10 Jan 2024 15:34:55 +0800 Message-Id: <20240110073455.1656619-1-haochen.jiang@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 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: 1787688018404721859 X-GMAIL-MSGID: 1787688018404721859 Hi all, This patch aims to add AVX10.1 related macros for libgomp's request. The request comes following: https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642025.html Ok for trunk? Thx, Haochen gcc/ChangeLog: PR target/113288 * config/i386/i386-c.cc (ix86_target_macros_internal): Add __AVX10_1__, __AVX10_1_256__ and __AVX10_1_512__. --- gcc/config/i386/i386-c.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gcc/config/i386/i386-c.cc b/gcc/config/i386/i386-c.cc index c3ae984670b..366b560158a 100644 --- a/gcc/config/i386/i386-c.cc +++ b/gcc/config/i386/i386-c.cc @@ -735,6 +735,13 @@ ix86_target_macros_internal (HOST_WIDE_INT isa_flag, def_or_undef (parse_in, "__EVEX512__"); if (isa_flag2 & OPTION_MASK_ISA2_USER_MSR) def_or_undef (parse_in, "__USER_MSR__"); + if (isa_flag2 & OPTION_MASK_ISA2_AVX10_1_256) + { + def_or_undef (parse_in, "__AVX10_1_256__"); + def_or_undef (parse_in, "__AVX10_1__"); + } + if (isa_flag2 & OPTION_MASK_ISA2_AVX10_1_512) + def_or_undef (parse_in, "__AVX10_1_512__"); if (TARGET_IAMCU) { def_or_undef (parse_in, "__iamcu");