From patchwork Mon Jan 8 03:08:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hongyu Wang X-Patchwork-Id: 185798 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:37c1:b0:101:2151:f287 with SMTP id y1csp807232dyq; Sun, 7 Jan 2024 19:10:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKyKuIQgB8d4eZgDWfiMeTg9BjglgmohTvRIZefnNzw2y68Memvi4+/b3CcVj9XA0mUhl6 X-Received: by 2002:a05:620a:8081:b0:783:1cba:60a0 with SMTP id ef1-20020a05620a808100b007831cba60a0mr1994162qkb.91.1704683401099; Sun, 07 Jan 2024 19:10:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704683401; cv=pass; d=google.com; s=arc-20160816; b=m1uzW18hau5B6fg3KsU7Vj7moMaNPKm6u5SZrDUbiFqECP1XDCNKlecHAMU+hoUOR1 iw6tVuYiTtB4ireo6sXzIYBWmq9ikpR0aqV6+bhJj46cqZlKjv9WACbq/2Q5To+XYBxI JAl5EBcSb7V/w+hFB+FWJ9alAiF+GwHE8yeOGfIQcCjpSmEZ+Wh6YpmV0LMPHqmB428b yyZNVHutHB+E1RShLnYsSEUdSdiBRG5fpcvZMApMFLrcYthCZ6N0ffe4Z9NDtEs3OeHQ +fobIr+MXENoJVdkDUzUaLKZgdIzaR8N7QUfiF+XXoi67gnh7uQ0+e28L2szCugdbKvX jJxw== 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=SD5skRYlDLrlYYjFzrrDhT/oasflyBQ0zzTnDrSh4CM=; fh=teAkCfp8/+jdw+9cwKK1bUX4dNiR8PY1y3wBzpNarjY=; b=bR3V6VBlf4gemAhSMHLQFlqWxP7q4emxhgIZoBqRWULuS7XWtWdD6aqaK5QlFiSiMj h2GdJfe195v28D2xXSQJIKX4rOougYw97+2WbxuDHtsqyV0X9l+e6vOnvCfyZqifBCcP eDBqL1QRfrK68zoFpe701K17PmomI9tUG2khN7dmrDFn8Z6WiSvh3FD+fUyHqJu9NApm yK7RlJXo1iSLzv0iHjC8XuwHQfEwT9yiSMM1mhugVc6Af1FSuAX5PstKAesnrjs1I8cR YAW67b9qvh6yAlIGv+Hxu4Lr0EFP60mdfUjprkaP3JJiIg85aKzZ7T/YtdIBqg5jJQSw d9YQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nPwuUsSG; 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 qr14-20020a05620a390e00b0078322b61e8csi1302553qkn.465.2024.01.07.19.10.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 19:10:01 -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=nPwuUsSG; 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 AFC603858427 for ; Mon, 8 Jan 2024 03:10:00 +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.55.52.88]) by sourceware.org (Postfix) with ESMTPS id 65CC53858C29 for ; Mon, 8 Jan 2024 03:08:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65CC53858C29 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 65CC53858C29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.55.52.88 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704683316; cv=none; b=TnijlI8295JQd1dIe8h9rivdCPcULzkYPhKq28miyLF/lsW2Dh5Q+39Z6DnkgcAWFUrk4TeQdQtwUA2OmnfpOQoafGQ23g2GQicgVXaFWgbpIj3H0eeRljTaAl0VsRcNPIejak+rmz/kh4b8apITWk8WNuEoakGFVuStf1K1V2Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704683316; c=relaxed/simple; bh=TV/aiBfFLRnmLrkd5J4oWnax5lbaMXExxviPWx5IdOE=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=shjZG7RRlZQjjiwH3Li0FZ4XJcOXq5c/hJLllriIWWFLgTDQAcenM/NwX7aF6lOOaKYe8iS4Wz3fQLoy5ArREfO4kSX6Uuif24Z8aEWiWtfzNf3ZGWEA1+qnYsCHOI+G3TOaOro7FqBMXaTYp6XNUAk8NwWQOJV4DYBCqCR9E3A= 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=1704683314; x=1736219314; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=TV/aiBfFLRnmLrkd5J4oWnax5lbaMXExxviPWx5IdOE=; b=nPwuUsSGS+WSHWxYbeEc6tMT3U8R6g02Aa8A8Cr981a5knCl5AmwJ18i d8huAW6MNVR8ed+tkdZPK9WugGLYS9SID3syTkaCiQeGKw51WJ25d03Jo LkJ0DP8Xh2WcJOOAWb6Bl+rJBheYQWnru3l7dv4kreSr4KQaEdBS8/5Cz D58MLe1xZNngyanMgRmgl8S3PMvXe0YI8u4kMVZkkK7Rv+dlQeyPT0JDC oOtE58SMLleEI1lOAzvOh2tyQagn1tQ5iQb3SD3rn8tQgsmfAWlDLmaP6 sthuLjg5uTgTRH0NC3NulFU4kNSpDYwFi0WG1DhbGTqkzm6v/2H+065D5 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10946"; a="428967567" X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="428967567" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jan 2024 19:08:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,340,1695711600"; d="scan'208";a="23394829" Received: from shvmail03.sh.intel.com ([10.239.245.20]) by fmviesa001.fm.intel.com with ESMTP; 07 Jan 2024 19:08:31 -0800 Received: from shliclel4217.sh.intel.com (shliclel4217.sh.intel.com [10.239.240.127]) by shvmail03.sh.intel.com (Postfix) with ESMTP id EAE80100512D; Mon, 8 Jan 2024 11:08:30 +0800 (CST) From: Hongyu Wang To: gcc-patches@gcc.gnu.org Cc: hongtao.liu@intel.com Subject: [PATCH] i386: [APX] Add missing document for APX Date: Mon, 8 Jan 2024 11:08:30 +0800 Message-Id: <20240108030830.1303730-1-hongyu.wang@intel.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_SOFTFAIL, 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: 1787490101967079404 X-GMAIL-MSGID: 1787490101967079404 Hi, The supported sub-features for APX was missing in option document and target attribute section. Add those missing ones. Ok for trunk? gcc/ChangeLog: * config/i386/i386.opt: Add supported sub-features. * doc/extend.texi: Add description for target attribute. --- gcc/config/i386/i386.opt | 3 ++- gcc/doc/extend.texi | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt index 1bfff1e0d82..a38e92baf92 100644 --- a/gcc/config/i386/i386.opt +++ b/gcc/config/i386/i386.opt @@ -1328,7 +1328,8 @@ Enable vectorization for scatter instruction. mapxf Target Mask(ISA2_APX_F) Var(ix86_isa_flags2) Save -Support APX code generation. +Support code generation for APX features, including EGPR, PUSH2POP2, +NDD and PPX. mapx-features= Target Undocumented Joined Enum(apx_features) EnumSet Var(ix86_apx_features) Init(apx_none) Save diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 9e61ba9507d..84eef411e2d 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7344,6 +7344,12 @@ Enable/disable the generation of the SM4 instructions. @itemx no-usermsr Enable/disable the generation of the USER_MSR instructions. +@cindex @code{target("apxf")} function attribute, x86 +@item apxf +@itemx no-apxf +Enable/disable the generation of the APX features, including +EGPR, PUSH2POP2, NDD and PPX. + @cindex @code{target("avx10.1")} function attribute, x86 @item avx10.1 @itemx no-avx10.1