* [PATCH][DOCS] Fix documentation of __builtin_cpu_is and __builtin_cpu_supports for x86.
@ 2018-11-12 11:46 Martin Liška
2018-11-12 17:04 ` Sandra Loosemore
0 siblings, 1 reply; 3+ messages in thread
From: Martin Liška @ 2018-11-12 11:46 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
Hi.
The patch is adding missing values for aforementioned built-ins.
Ready for trunk?
Thanks,
Martin
gcc/ChangeLog:
2018-11-12 Martin Liska <mliska@suse.cz>
* doc/extend.texi: Add missing values for __builtin_cpu_is and
__builtin_cpu_supports for x86 target.
---
gcc/doc/extend.texi | 100 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 98 insertions(+), 2 deletions(-)
[-- Attachment #2: 0001-Fix-documentation-of-__builtin_cpu_is-and-__builtin_.patch --]
[-- Type: text/x-patch, Size: 2449 bytes --]
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index ebdc0cec789..04a069fc366 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -20422,12 +20422,18 @@ is of type @var{cpuname}
and returns @code{0} otherwise. The following CPU names can be detected:
@table @samp
+@item amd
+AMD CPU.
+
@item intel
Intel CPU.
@item atom
Intel Atom CPU.
+@item slm
+Intel Silvermont CPU.
+
@item core2
Intel Core 2 CPU.
@@ -20443,8 +20449,50 @@ Intel Core i7 Westmere CPU.
@item sandybridge
Intel Core i7 Sandy Bridge CPU.
-@item amd
-AMD CPU.
+@item ivybridge
+Intel Core i7 Ivy Bridge CPU.
+
+@item haswell
+Intel Core i7 Haswell CPU.
+
+@item broadwell
+Intel Core i7 Broadwell CPU.
+
+@item skylake
+Intel Core i7 Skylake CPU.
+
+@item skylake-avx512
+Intel Core i7 Skylake AVX512 CPU.
+
+@item cannonlake
+Intel Core i7 Cannon Lake CPU.
+
+@item icelake-client
+Intel Core i7 Ice Lake Client CPU.
+
+@item icelake-server
+Intel Core i7 Ice Lake Server CPU.
+
+@item bonnell
+Intel Atom Bonnell CPU.
+
+@item silvermont
+Intel Atom Silvermont CPU.
+
+@item goldmont
+Intel Atom Goldmont CPU.
+
+@item goldmont-plus
+Intel Atom Goldmont Plus CPU.
+
+@item tremont
+Intel Atom Tremont CPU.
+
+@item knl
+Intel Knights Landing CPU.
+
+@item knm
+Intel Knights Mill CPU.
@item amdfam10h
AMD Family 10h CPU.
@@ -20530,8 +20578,56 @@ SSE4.2 instructions.
AVX instructions.
@item avx2
AVX2 instructions.
+@item sse4a
+SSE4A instructions.
+@item fma4
+FMA4 instructions.
+@item xop
+XOP instructions.
+@item fma
+FMA instructions.
@item avx512f
AVX512F instructions.
+@item bmi
+BMI instructions.
+@item bmi2
+BMI2 instructions.
+@item aes
+AES instructions.
+@item pclmul
+PCLMUL instructions.
+@item avx512vl
+AVX512VL instructions.
+@item avx512bw
+AVX512BW instructions.
+@item avx512dq
+AVX512DQ instructions.
+@item avx512cd
+AVX512CD instructions.
+@item avx512er
+AVX512ER instructions.
+@item avx512pf
+AVX512PF instructions.
+@item avx512vbmi
+AVX512VBMI instructions.
+@item avx512ifma
+AVX512IFMA instructions.
+@item avx5124vnniw
+AVX5124VNNIW instructions.
+@item avx5124fmaps
+AVX5124FMAPS instructions.
+@item avx512vpopcntdq
+AVX512VPOPCNTDQ instructions.
+@item avx512vbmi2
+AVX512VBMI2 instructions.
+@item gfni
+GFNI instructions.
+@item vpclmulqdq
+VPCLMULQDQ instructions.
+@item avx512vnni
+AVX512VNNI instructions.
+@item avx512bitalg
+AVX512BITALG instructions.
@end table
Here is an example:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][DOCS] Fix documentation of __builtin_cpu_is and __builtin_cpu_supports for x86.
2018-11-12 11:46 [PATCH][DOCS] Fix documentation of __builtin_cpu_is and __builtin_cpu_supports for x86 Martin Liška
@ 2018-11-12 17:04 ` Sandra Loosemore
0 siblings, 0 replies; 3+ messages in thread
From: Sandra Loosemore @ 2018-11-12 17:04 UTC (permalink / raw)
To: Martin Liška, gcc-patches
On 11/12/18 4:46 AM, Martin Liška wrote:
> Hi.
>
> The patch is adding missing values for aforementioned built-ins.
>
> Ready for trunk?
> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 2018-11-12 Martin Liska <mliska@suse.cz>
>
> * doc/extend.texi: Add missing values for __builtin_cpu_is and
> __builtin_cpu_supports for x86 target.
> ---
> gcc/doc/extend.texi | 100 +++++++++++++++++++++++++++++++++++++++++++-
> 1 file changed, 98 insertions(+), 2 deletions(-)
>
Looks fine to me, although I can't vouch for technical correctness.
-Sandra
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH][DOCS] Fix documentation of __builtin_cpu_is and __builtin_cpu_supports for x86.
@ 2018-11-12 12:13 Uros Bizjak
0 siblings, 0 replies; 3+ messages in thread
From: Uros Bizjak @ 2018-11-12 12:13 UTC (permalink / raw)
To: gcc-patches; +Cc: Martin Liska
> The patch is adding missing values for aforementioned built-ins.
>
> Ready for trunk?
> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 2018-11-12 Martin Liska <mliska@suse.cz>
>
> * doc/extend.texi: Add missing values for __builtin_cpu_is and
> __builtin_cpu_supports for x86 target.
OK.
Thanks,
Uros.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-12 17:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12 11:46 [PATCH][DOCS] Fix documentation of __builtin_cpu_is and __builtin_cpu_supports for x86 Martin Liška
2018-11-12 17:04 ` Sandra Loosemore
2018-11-12 12:13 Uros Bizjak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).