• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqtwindows誰得cocoapythonphprubygameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdomvb.netdirectxbtronarduinopreviewerゲームエンジン

GCC with patches for OS216


Commit MetaInfo

Revision41b504e91e5cd0fdce36b7306ce42dd592c401f2 (tree)
Zeit2020-07-03 02:29:08
AutorPeter Bergner <bergner@linu...>
CommiterPeter Bergner

Log Message

rs6000: Add support for builtin_cpu_is ("power10")

Add support for builtin_cpu_is ("power10"). Also add documentation for
the recently added "arch_3_1" and "mma"
builtin_cpu_supports arguments.

2020-06-25 Peter Bergner <bergner@linux.ibm.com>

gcc/
* config/rs6000/rs6000-call.c (cpu_is_info) <power10>: New.
* doc/extend.texi (PowerPC Built-in Functions): Document power10,
arch_3_1 and mma.

gcc/testsuite/
* gcc.target/powerpc/cpu-builtin-1.c: Add tests for power10, arch_3_1
and mma.

(cherry picked from commit 67161d24f45601e43abea98f2c3d7d7a462b6eab)

Ändern Zusammenfassung

Diff

--- a/gcc/config/rs6000/rs6000-call.c
+++ b/gcc/config/rs6000/rs6000-call.c
@@ -105,6 +105,7 @@ static const struct
105105 const char *cpu;
106106 unsigned int cpuid;
107107 } cpu_is_info[] = {
108+ { "power10", PPC_PLATFORM_POWER10 },
108109 { "power9", PPC_PLATFORM_POWER9 },
109110 { "power8", PPC_PLATFORM_POWER8 },
110111 { "power7", PPC_PLATFORM_POWER7 },
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -17018,6 +17018,8 @@ issues a warning.
1701817018 The following CPU names can be detected:
1701917019
1702017020 @table @samp
17021+@item power10
17022+IBM POWER10 Server CPU.
1702117023 @item power9
1702217024 IBM POWER9 Server CPU.
1702317025 @item power8
@@ -17094,6 +17096,8 @@ CPU supports ISA 2.06 (eg, POWER7)
1709417096 CPU supports ISA 2.07 (eg, POWER8)
1709517097 @item arch_3_00
1709617098 CPU supports ISA 3.0 (eg, POWER9)
17099+@item arch_3_1
17100+CPU supports ISA 3.1 (eg, POWER10)
1709717101 @item archpmu
1709817102 CPU supports the set of compatible performance monitoring events.
1709917103 @item booke
@@ -17127,6 +17131,8 @@ CPU supports icache snooping capabilities.
1712717131 CPU supports 128-bit IEEE binary floating point instructions.
1712817132 @item isel
1712917133 CPU supports the integer select instruction.
17134+@item mma
17135+CPU supports the matrix-multiply assist instructions.
1713017136 @item mmu
1713117137 CPU has a memory management unit.
1713217138 @item notb
--- a/gcc/testsuite/gcc.target/powerpc/cpu-builtin-1.c
+++ b/gcc/testsuite/gcc.target/powerpc/cpu-builtin-1.c
@@ -24,6 +24,7 @@ use_cpu_is_builtins (unsigned int *p)
2424 p[12] = __builtin_cpu_is ("ppc440");
2525 p[13] = __builtin_cpu_is ("ppc405");
2626 p[14] = __builtin_cpu_is ("ppc-cell-be");
27+ p[15] = __builtin_cpu_is ("power10");
2728 #else
2829 p[0] = 0;
2930 #endif
@@ -74,6 +75,8 @@ use_cpu_supports_builtins (unsigned int *p)
7475 p[38] = __builtin_cpu_supports ("darn");
7576 p[39] = __builtin_cpu_supports ("scv");
7677 p[40] = __builtin_cpu_supports ("htm-no-suspend");
78+ p[41] = __builtin_cpu_supports ("arch_3_1");
79+ p[42] = __builtin_cpu_supports ("mma");
7780 #else
7881 p[0] = 0;
7982 #endif