From: Matthew Wahab Date: Wed, 12 Aug 2015 15:03:29 +0000 (+0000) Subject: arm.h (arm_fpu_feature_set): New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b813c04090a5db6baec9e0eecfab566ba7680637;p=gcc.git arm.h (arm_fpu_feature_set): New. * config/arm/arm.h (arm_fpu_feature_set): New. (ARM_FPU_FSET_HAS): New. (FPU_FL_NONE): New. (FPU_FL_NEON): New. (FPU_FL_FP16): New. (FPU_FL_CRYPTO): New. From-SVN: r226818 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ebf0d4f969a..0fac0249622 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2015-08-12 Matthew Wahab + + * config/arm/arm.h (arm_fpu_feature_set): New. + (ARM_FPU_FSET_HAS): New. + (FPU_FL_NONE): New. + (FPU_FL_NEON): New. + (FPU_FL_FP16): New. + (FPU_FL_CRYPTO): New. + 2015-08-12 Kyrylo Tkachov * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break diff --git a/gcc/config/arm/arm.h b/gcc/config/arm/arm.h index bb64be00c12..f49eb488c7a 100644 --- a/gcc/config/arm/arm.h +++ b/gcc/config/arm/arm.h @@ -318,6 +318,19 @@ extern void (*arm_lang_output_object_attributes_hook)(void); {"mode", "%{!marm:%{!mthumb:-m%(VALUE)}}"}, \ {"tls", "%{!mtls-dialect=*:-mtls-dialect=%(VALUE)}"}, +/* FPU feature sets. */ + +typedef unsigned long arm_fpu_feature_set; + +/* Test for an FPU feature. */ +#define ARM_FPU_FSET_HAS(S,F) (((S) & (F)) == (F)) + +/* FPU Features. */ +#define FPU_FL_NONE (0) +#define FPU_FL_NEON (1 << 0) /* NEON instructions. */ +#define FPU_FL_FP16 (1 << 1) /* Half-precision. */ +#define FPU_FL_CRYPTO (1 << 2) /* Crypto extensions. */ + /* Which floating point model to use. */ enum arm_fp_model {