# strip off 32 D-registers, but does not remove support for
# double-precision FP.
define fgroup ALL_SIMD_INTERNAL fp_d32 neon ALL_CRYPTO
-define fgroup ALL_SIMD ALL_SIMD_INTERNAL dotprod fp16fml
+define fgroup ALL_SIMD_EXTERNAL dotprod fp16fml
+define fgroup ALL_SIMD ALL_SIMD_INTERNAL ALL_SIMD_EXTERNAL
# List of all FPU bits to strip out if -mfpu is used to override the
# default. fp16 is deliberately missing from this list.
define fgroup ALL_FPU_INTERNAL vfpv2 vfpv3 vfpv4 fpv5 fp16conv fp_dbl ALL_SIMD_INTERNAL
-
# Similarly, but including fp16 and other extensions that aren't part of
# -mfpu support.
-define fgroup ALL_FP fp16 ALL_FPU_INTERNAL
+define fgroup ALL_FPU_EXTERNAL fp16
+
+# Everything related to the FPU extensions (FP or SIMD).
+define fgroup ALL_FP ALL_FPU_EXTERNAL ALL_FPU_INTERNAL ALL_SIMD
define fgroup ARMv4 armv4 notm
define fgroup ARMv4t ARMv4 thumb
cname cortexa55
tune for cortex-a53
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
option nofp remove ALL_FP
costs cortex_a53
cname cortexa75
tune for cortex-a57
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
costs cortex_a73
vendor 41
cname cortexa76
tune for cortex-a57
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
costs cortex_a57
vendor 41
cname cortexa76ae
tune for cortex-a57
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
costs cortex_a57
vendor 41
cname cortexa77
tune for cortex-a57
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
costs cortex_a57
vendor 41
alias !ares
tune for cortex-a57
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
costs cortex_a57
vendor 41
cname cortexa75cortexa55
tune for cortex-a53
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
costs cortex_a73
end cpu cortex-a75.cortex-a55
cname cortexa76cortexa55
tune for cortex-a53
tune flags LDSCHED
- architecture armv8.2-a+fp16+dotprod+simd
+ architecture armv8.2-a+fp16+dotprod
option crypto add FP_ARMv8 CRYPTO
costs cortex_a57
end cpu cortex-a76.cortex-a55
#endif
}
-static sbitmap isa_all_fpubits;
+static sbitmap isa_all_fpubits_internal;
+static sbitmap isa_all_fpbits;
static sbitmap isa_quirkbits;
/* Configure a build target TARGET from the user-specified options OPTS and
/* Ignore any bits that are quirk bits. */
bitmap_and_compl (isa_delta, isa_delta, isa_quirkbits);
/* Ignore (for now) any bits that might be set by -mfpu. */
- bitmap_and_compl (isa_delta, isa_delta, isa_all_fpubits);
+ bitmap_and_compl (isa_delta, isa_delta, isa_all_fpubits_internal);
+
+ /* And if the target ISA lacks floating point, ignore any
+ extensions that depend on that. */
+ if (!bitmap_bit_p (target->isa, isa_bit_vfpv2))
+ bitmap_and_compl (isa_delta, isa_delta, isa_all_fpbits);
if (!bitmap_empty_p (isa_delta))
{
auto_sbitmap fpu_bits (isa_num_bits);
arm_initialize_isa (fpu_bits, arm_selected_fpu->isa_bits);
- bitmap_and_compl (target->isa, target->isa, isa_all_fpubits);
+ bitmap_and_compl (target->isa, target->isa, isa_all_fpubits_internal);
bitmap_ior (target->isa, target->isa, fpu_bits);
}
static void
arm_option_override (void)
{
- static const enum isa_feature fpu_bitlist[]
+ static const enum isa_feature fpu_bitlist_internal[]
= { ISA_ALL_FPU_INTERNAL, isa_nobit };
+ static const enum isa_feature fp_bitlist[]
+ = { ISA_ALL_FP, isa_nobit };
static const enum isa_feature quirk_bitlist[] = { ISA_ALL_QUIRKS, isa_nobit};
cl_target_option opts;
isa_quirkbits = sbitmap_alloc (isa_num_bits);
arm_initialize_isa (isa_quirkbits, quirk_bitlist);
- isa_all_fpubits = sbitmap_alloc (isa_num_bits);
- arm_initialize_isa (isa_all_fpubits, fpu_bitlist);
+ isa_all_fpubits_internal = sbitmap_alloc (isa_num_bits);
+ isa_all_fpbits = sbitmap_alloc (isa_num_bits);
+ arm_initialize_isa (isa_all_fpubits_internal, fpu_bitlist_internal);
+ arm_initialize_isa (isa_all_fpbits, fp_bitlist);
arm_active_target.isa = sbitmap_alloc (isa_num_bits);
don't print anything if all the bits are part of the
FPU specification. */
if (bitmap_subset_p (opt_bits, arm_active_target.isa)
- && !bitmap_subset_p (opt_bits, isa_all_fpubits))
+ && !bitmap_subset_p (opt_bits, isa_all_fpubits_internal))
asm_fprintf (asm_out_file, "\t.arch_extension %s\n", opt->name);
}
}
auto_sbitmap fpubits (isa_num_bits);
auto_sbitmap cand_fpubits (isa_num_bits);
- bitmap_and (fpubits, isa, isa_all_fpubits);
+ bitmap_and (fpubits, isa, isa_all_fpubits_internal);
/* If there are no ISA feature bits relating to the FPU, we must be
doing soft-float. */
{
arm_initialize_isa (opt_bits, opt->isa_bits);
if (bitmap_subset_p (opt_bits, arm_active_target.isa)
- && !bitmap_subset_p (opt_bits, isa_all_fpubits))
+ && !bitmap_subset_p (opt_bits, isa_all_fpubits_internal))
asm_fprintf (asm_out_file, "\t.arch_extension %s\n",
opt->name);
}
static void
arm_test_fpu_data (void)
{
- auto_sbitmap isa_all_fpubits (isa_num_bits);
+ auto_sbitmap isa_all_fpubits_internal (isa_num_bits);
auto_sbitmap fpubits (isa_num_bits);
auto_sbitmap tmpset (isa_num_bits);
- static const enum isa_feature fpu_bitlist[]
+ static const enum isa_feature fpu_bitlist_internal[]
= { ISA_ALL_FPU_INTERNAL, isa_nobit };
- arm_initialize_isa (isa_all_fpubits, fpu_bitlist);
+ arm_initialize_isa (isa_all_fpubits_internal, fpu_bitlist_internal);
for (unsigned int i = 0; i < TARGET_FPU_auto; i++)
{
arm_initialize_isa (fpubits, all_fpus[i].isa_bits);
- bitmap_and_compl (tmpset, isa_all_fpubits, fpubits);
- bitmap_clear (isa_all_fpubits);
- bitmap_copy (isa_all_fpubits, tmpset);
+ bitmap_and_compl (tmpset, isa_all_fpubits_internal, fpubits);
+ bitmap_clear (isa_all_fpubits_internal);
+ bitmap_copy (isa_all_fpubits_internal, tmpset);
}
- if (!bitmap_empty_p (isa_all_fpubits))
+ if (!bitmap_empty_p (isa_all_fpubits_internal))
{
fprintf (stderr, "Error: found feature bits in the ALL_FPU_INTERAL"
" group that are not defined by any FPU.\n"
" Check your arm-cpus.in.\n");
- ASSERT_TRUE (bitmap_empty_p (isa_all_fpubits));
+ ASSERT_TRUE (bitmap_empty_p (isa_all_fpubits_internal));
}
}