aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongyu Wang <hongyu.wang@intel.com>2024-01-08 11:01:54 +0800
committerHongyu Wang <hongyu.wang@intel.com>2024-01-08 11:02:43 +0800
commit79b5fd013a97615f1e0a2e762d2649539e27aab7 (patch)
tree3d99d0d0a848d8468917a2ae6e6a82dbb8d797d2
parentcddaff46adfd831d4836f29dc5e21f73eaed37b3 (diff)
downloadgcc-79b5fd013a97615f1e0a2e762d2649539e27aab7.zip
gcc-79b5fd013a97615f1e0a2e762d2649539e27aab7.tar.gz
gcc-79b5fd013a97615f1e0a2e762d2649539e27aab7.tar.bz2
i386: [APX] Add missing document for APX
The supported sub-features for APX was missing in option document and target attribute section. Add those missing ones. gcc/ChangeLog: * config/i386/i386.opt: Add supported sub-features. * doc/extend.texi: Add description for target attribute.
-rw-r--r--gcc/config/i386/i386.opt3
-rw-r--r--gcc/doc/extend.texi6
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.opt b/gcc/config/i386/i386.opt
index 1bfff1e..a38e92b 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 9e61ba9..84eef41 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