+2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
+
+ * lib/target-supports.exp (add_options_for_aarch64_sve): New procedure.
+ (aarch64_sve_hw_bits): Call add_options_for_aarch64_sve.
+ (check_effective_target_aarch64_sve_hw): Likewise.
+
2019-06-03 Richard Biener <rguenther@suse.de>
* gcc.dg/tree-ssa/alias-access-path-1.c: Scan fre1.
return "$flags $et_arm_neon_softfp_fp16_flags"
}
+proc add_options_for_aarch64_sve { flags } {
+ if { ![istarget aarch64*-*-*] || [check_effective_target_aarch64_sve] } {
+ return "$flags"
+ }
+ return "$flags -march=armv8.2-a+sve"
+}
+
# Return 1 if this is an ARM target supporting the FP16 alternative
# format. Some multilibs may be incompatible with the options needed. Also
# set et_arm_neon_fp16_flags to the best options to add.
asm volatile ("ptrue p0.b");
return 0;
}
- }]
+ } [add_options_for_aarch64_sve ""]]
}
# Return true if this is an AArch64 target that can run SVE2 code.
__builtin_abort ();
return 0;
}
- }]]
+ }] [add_options_for_aarch64_sve ""]]
}
# Return true if this is an AArch64 target that can run SVE code and