backport: ppc-auxv.h (PPC_FEATURE2_DARN): New define.
gcc/ Backport from mainline 2017-07-28 Peter Bergner <bergner@vnet.ibm.com> * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define. (PPC_FEATURE2_SCV): Likewise. * config/rs6000/rs6000.c (cpu_supports_info): Use them. gcc/testsuite/ Backport from mainline 2017-07-28 Peter Bergner <bergner@vnet.ibm.com> * gcc.target/powerpc/cpu-builtin-1.c (darn, scv): Add tests. From-SVN: r250688
This commit is contained in:
parent
fc626ac32f
commit
7a4b10a14f
@ -1,3 +1,12 @@
|
||||
2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
|
||||
|
||||
Backport from mainline
|
||||
2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
|
||||
|
||||
* config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
|
||||
(PPC_FEATURE2_SCV): Likewise.
|
||||
* config/rs6000/rs6000.c (cpu_supports_info): Use them.
|
||||
|
||||
2017-07-28 David Edelsohn <dje.gcc@gmail.com>
|
||||
|
||||
Backport from mainline
|
||||
|
@ -89,6 +89,8 @@
|
||||
#define PPC_FEATURE2_HTM_NOSC 0x01000000
|
||||
#define PPC_FEATURE2_ARCH_3_00 0x00800000
|
||||
#define PPC_FEATURE2_HAS_IEEE128 0x00400000
|
||||
#define PPC_FEATURE2_DARN 0x00200000
|
||||
#define PPC_FEATURE2_SCV 0x00100000
|
||||
|
||||
|
||||
/* Thread Control Block (TCB) offsets of the AT_PLATFORM, AT_HWCAP and
|
||||
|
@ -379,7 +379,9 @@ static const struct
|
||||
{ "tar", PPC_FEATURE2_HAS_TAR, 1 },
|
||||
{ "vcrypto", PPC_FEATURE2_HAS_VEC_CRYPTO, 1 },
|
||||
{ "arch_3_00", PPC_FEATURE2_ARCH_3_00, 1 },
|
||||
{ "ieee128", PPC_FEATURE2_HAS_IEEE128, 1 }
|
||||
{ "ieee128", PPC_FEATURE2_HAS_IEEE128, 1 },
|
||||
{ "darn", PPC_FEATURE2_DARN, 1 },
|
||||
{ "scv", PPC_FEATURE2_SCV, 1 }
|
||||
};
|
||||
|
||||
/* Newer LIBCs explicitly export this symbol to declare that they provide
|
||||
|
@ -1,3 +1,10 @@
|
||||
2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
|
||||
|
||||
Backport from mainline
|
||||
2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
|
||||
|
||||
* gcc.target/powerpc/cpu-builtin-1.c (darn, scv): Add tests.
|
||||
|
||||
2017-07-28 Bin Cheng <bin.cheng@arm.com>
|
||||
|
||||
Backport from mainline r250496
|
||||
|
@ -71,6 +71,8 @@ use_cpu_supports_builtins (unsigned int *p)
|
||||
p[35] = __builtin_cpu_supports ("ucache");
|
||||
p[36] = __builtin_cpu_supports ("vcrypto");
|
||||
p[37] = __builtin_cpu_supports ("vsx");
|
||||
p[38] = __builtin_cpu_supports ("darn");
|
||||
p[39] = __builtin_cpu_supports ("scv");
|
||||
#else
|
||||
p[0] = 0;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user