[AArch64] Support the 'crc' extension in -march and -mcpu options.
gcc/ * config/aarch64/aarch64-option-extensions.def: Add AARCH64_OPT_EXTENSION of 'crc'. * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define. (AARCH64_ISA_CRC): Ditto. * doc/invoke.texi (-march and -mcpu feature modifiers): Add description of the CRC extension. From-SVN: r202275
This commit is contained in:
parent
996746aa21
commit
5922847b1c
|
@ -1,3 +1,12 @@
|
|||
2013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
|
||||
|
||||
* config/aarch64/aarch64-option-extensions.def: Add
|
||||
AARCH64_OPT_EXTENSION of 'crc'.
|
||||
* config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
|
||||
(AARCH64_ISA_CRC): Ditto.
|
||||
* doc/invoke.texi (-march and -mcpu feature modifiers): Add
|
||||
description of the CRC extension.
|
||||
|
||||
2013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
|
||||
|
||||
* config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
|
||||
|
|
|
@ -35,3 +35,4 @@
|
|||
AARCH64_OPT_EXTENSION("fp", AARCH64_FL_FP, AARCH64_FL_FPSIMD | AARCH64_FL_CRYPTO)
|
||||
AARCH64_OPT_EXTENSION("simd", AARCH64_FL_FPSIMD, AARCH64_FL_SIMD | AARCH64_FL_CRYPTO)
|
||||
AARCH64_OPT_EXTENSION("crypto", AARCH64_FL_CRYPTO | AARCH64_FL_FPSIMD, AARCH64_FL_CRYPTO)
|
||||
AARCH64_OPT_EXTENSION("crc", AARCH64_FL_CRC, AARCH64_FL_CRC)
|
||||
|
|
|
@ -158,6 +158,7 @@
|
|||
#define AARCH64_FL_FP (1 << 1) /* Has FP. */
|
||||
#define AARCH64_FL_CRYPTO (1 << 2) /* Has crypto. */
|
||||
#define AARCH64_FL_SLOWMUL (1 << 3) /* A slow multiply core. */
|
||||
#define AARCH64_FL_CRC (1 << 4) /* Has CRC. */
|
||||
|
||||
/* Has FP and SIMD. */
|
||||
#define AARCH64_FL_FPSIMD (AARCH64_FL_FP | AARCH64_FL_SIMD)
|
||||
|
@ -170,6 +171,7 @@
|
|||
|
||||
/* Macros to test ISA flags. */
|
||||
extern unsigned long aarch64_isa_flags;
|
||||
#define AARCH64_ISA_CRC (aarch64_isa_flags & AARCH64_FL_CRC)
|
||||
#define AARCH64_ISA_CRYPTO (aarch64_isa_flags & AARCH64_FL_CRYPTO)
|
||||
#define AARCH64_ISA_FP (aarch64_isa_flags & AARCH64_FL_FP)
|
||||
#define AARCH64_ISA_SIMD (aarch64_isa_flags & AARCH64_FL_SIMD)
|
||||
|
|
|
@ -11173,6 +11173,8 @@ Feature modifiers used with @option{-march} and @option{-mcpu} can be one
|
|||
the following:
|
||||
|
||||
@table @samp
|
||||
@item crc
|
||||
Enable CRC extension.
|
||||
@item crypto
|
||||
Enable Crypto extension. This implies Advanced SIMD is enabled.
|
||||
@item fp
|
||||
|
|
Loading…
Reference in New Issue