aarch64: Fix inverted approx_sqrt condition
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 20 Feb 2020 14:16:12 +0000 (14:16 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Fri, 21 Feb 2020 10:17:27 +0000 (10:17 +0000)
commit902d28bd838c4d3f9d28832d387812da2232e1ec
treeb79c38c73a3b3ddd0fe80a919fa8fd80fb739569
parent6f83ceb8cf613d37d010a17b23ebc98cdb8dc89d
aarch64: Fix inverted approx_sqrt condition

The fix for PR80530 included an accidental flipping of the
flag_finite_math_only check, so that -ffinite-math-only (and thus
-ffast-math) disabled approximate sqrt rather than enabling it.

This is tested by later patches but seemed worth splitting out.

2020-02-21  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Fix inverted
flag_finite_math_only condition.
gcc/ChangeLog
gcc/config/aarch64/aarch64.c