@@ -1,6 +1,7 @@
! { dg-do compile }
! { dg-require-effective-target vect_float }
! { dg-require-effective-target vect_intfloat_cvt }
+! { dg-require-effective-target vect_float_divide }
! { dg-additional-options "-ffast-math" }
program calcpi
@@ -2059,6 +2059,25 @@ proc check_effective_target_vect_int { } {
return $et_vect_int_saved
}
+proc check_effective_target_vect_float_divide { } {
+
+ global et_vect_float_divide_saved
+
+ if [info exists et_vect_float_divide_saved] {
+ verbose "check_effective_target_vect_divide_saved: using cached result" 2
+ } else {
+ set et_vect_float_divide_saved [check_effective_target_vect_float]
+ if { ([istarget arm*-*-*]
+ && [check_effective_target_arm_neon_ok])} {
+ set et_vect_float_divide_saved 0
+ }
+ }
+
+ verbose "check_effective_target_vect_float_divide: returning $et_vect_float_divide_saved" 2
+ return $et_vect_float_divide_saved
+
+}
+
# Return 1 if the target supports signed int->float conversion
#