[Bug testsuite/99352] check_effective_target_sqrt_insn for powerpc is wrong
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 10 21:41:57 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99352
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #4 from Segher Boessenkool <segher at gcc dot gnu.org> ---
commit c60ad1c5fe0249f48362be0f989184ca447f9d17
Author: Segher Boessenkool <segher@kernel.crashing.org>
Date: Wed Mar 3 20:34:32 2021 +0000
rs6000: Fix check_effective_target_sqrt_insn (PR99352)
The previous version returned true for all PowerPC. This is incorrect.
We only support floating point square root instructions if a) we support
floating point instructions at all, and b) we have _ARCH_PPCSQ defined.
2020-03-09 Segher Boessenkool <segher@kernel.crashing.org>
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_powerpc_sqrt): New.
(check_effective_target_sqrt_insn): Use it.
More information about the Gcc-bugs
mailing list