backport: ppc-auxv.h (PPC_FEATURE2_HTM_NO_SUSPEND): New define.

gcc/
	Backport from mainline
	2017-12-13  Peter Bergner  <bergner@vnet.ibm.com>

	* config/rs6000/ppc-auxv.h (PPC_FEATURE2_HTM_NO_SUSPEND): New define.
	* config/rs6000/rs6000.c (cpu_supports_info): Use it.

gcc/testsuite/
	Backport from mainline
	2017-12-13  Peter Bergner  <bergner@vnet.ibm.com>

	* gcc.target/powerpc/cpu-builtin-1.c (htm-no-suspend): Add test.

From-SVN: r255622
This commit is contained in:
Peter Bergner 2017-12-13 21:43:10 -06:00 committed by Peter Bergner
parent cbbde35a9c
commit 7eb38f05ee
5 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2017-12-13 Peter Bergner <bergner@vnet.ibm.com>
Backport from mainline
2017-12-13 Peter Bergner <bergner@vnet.ibm.com>
* config/rs6000/ppc-auxv.h (PPC_FEATURE2_HTM_NO_SUSPEND): New define.
* config/rs6000/rs6000.c (cpu_supports_info): Use it.
2017-12-11 Michael Meissner <meissner@linux.vnet.ibm.com> 2017-12-11 Michael Meissner <meissner@linux.vnet.ibm.com>
Back port from trunk Back port from trunk

View File

@ -91,6 +91,7 @@
#define PPC_FEATURE2_HAS_IEEE128 0x00400000 #define PPC_FEATURE2_HAS_IEEE128 0x00400000
#define PPC_FEATURE2_DARN 0x00200000 #define PPC_FEATURE2_DARN 0x00200000
#define PPC_FEATURE2_SCV 0x00100000 #define PPC_FEATURE2_SCV 0x00100000
#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000
/* Thread Control Block (TCB) offsets of the AT_PLATFORM, AT_HWCAP and /* Thread Control Block (TCB) offsets of the AT_PLATFORM, AT_HWCAP and

View File

@ -375,6 +375,7 @@ static const struct
{ "ebb", PPC_FEATURE2_HAS_EBB, 1 }, { "ebb", PPC_FEATURE2_HAS_EBB, 1 },
{ "htm", PPC_FEATURE2_HAS_HTM, 1 }, { "htm", PPC_FEATURE2_HAS_HTM, 1 },
{ "htm-nosc", PPC_FEATURE2_HTM_NOSC, 1 }, { "htm-nosc", PPC_FEATURE2_HTM_NOSC, 1 },
{ "htm-no-suspend", PPC_FEATURE2_HTM_NO_SUSPEND, 1 },
{ "isel", PPC_FEATURE2_HAS_ISEL, 1 }, { "isel", PPC_FEATURE2_HAS_ISEL, 1 },
{ "tar", PPC_FEATURE2_HAS_TAR, 1 }, { "tar", PPC_FEATURE2_HAS_TAR, 1 },
{ "vcrypto", PPC_FEATURE2_HAS_VEC_CRYPTO, 1 }, { "vcrypto", PPC_FEATURE2_HAS_VEC_CRYPTO, 1 },

View File

@ -1,3 +1,10 @@
2017-12-13 Peter Bergner <bergner@vnet.ibm.com>
Backport from mainline
2017-12-13 Peter Bergner <bergner@vnet.ibm.com>
* gcc.target/powerpc/cpu-builtin-1.c (htm-no-suspend): Add test.
2017-12-11 Michael Meissner <meissner@linux.vnet.ibm.com> 2017-12-11 Michael Meissner <meissner@linux.vnet.ibm.com>
Back port from trunk Back port from trunk

View File

@ -73,6 +73,7 @@ use_cpu_supports_builtins (unsigned int *p)
p[37] = __builtin_cpu_supports ("vsx"); p[37] = __builtin_cpu_supports ("vsx");
p[38] = __builtin_cpu_supports ("darn"); p[38] = __builtin_cpu_supports ("darn");
p[39] = __builtin_cpu_supports ("scv"); p[39] = __builtin_cpu_supports ("scv");
p[40] = __builtin_cpu_supports ("htm-no-suspend");
#else #else
p[0] = 0; p[0] = 0;
#endif #endif