]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Patch AArch64] Use software sqrt expansion always for -mlow-precision-recip-sqrt
authorJames Greenhalgh <james.greenhalgh@arm.com>
Tue, 16 Feb 2016 16:03:27 +0000 (16:03 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Tue, 16 Feb 2016 16:03:27 +0000 (16:03 +0000)
gcc/

* config/aarch64/aarch64.c (use_rsqrt_p): Always use software
reciprocal sqrt for -mlow-precision-recip-sqrt.

From-SVN: r233462

gcc/ChangeLog
gcc/config/aarch64/aarch64.c

index 08b3f0d43ee31490ccbfbe0865b4c9a78226d849..52494880bda63d37782ed85fca00811cc897152d 100644 (file)
@@ -1,3 +1,8 @@
+2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
+       reciprocal sqrt for -mlow-precision-recip-sqrt.
+
 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
            Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
 
index 974a789721b55a2806f1cfc13cf3712b17bc067b..f1e8d42b58892081e92dc6fae82d0e088132567f 100644 (file)
@@ -7468,8 +7468,9 @@ use_rsqrt_p (void)
 {
   return (!flag_trapping_math
          && flag_unsafe_math_optimizations
-         && (aarch64_tune_params.extra_tuning_flags
-             & AARCH64_EXTRA_TUNE_RECIP_SQRT));
+         && ((aarch64_tune_params.extra_tuning_flags
+              & AARCH64_EXTRA_TUNE_RECIP_SQRT)
+             || flag_mrecip_low_precision_sqrt));
 }
 
 /* Function to decide when to use