[Bug target/117357] ICE: in extract_insn, at recog.cc:2882 (unrecognizable insn: UNSPEC_RSQRT) with -mfpmath=387 and __builtin_ia32_rsqrtf()
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 19 17:41:03 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117357
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-12 branch has been updated by Uros Bizjak <uros@gcc.gnu.org>:
https://gcc.gnu.org/g:540c0c7c424a43c1d99dd22f6db020cc0cd6eaea
commit r12-10822-g540c0c7c424a43c1d99dd22f6db020cc0cd6eaea
Author: Uros Bizjak <ubizjak@gmail.com>
Date: Mon Nov 18 22:38:46 2024 +0100
i386: Enable *rsqrtsf2_sse without TARGET_SSE_MATH [PR117357]
__builtin_ia32_rsqrtsf2 expander generates UNSPEC_RSQRT insn pattern
also when TARGET_SSE_MATH is not set. Enable *rsqrtsf2_sse without
TARGET_SSE_MATH to avoid ICE with unrecognizable insn.
PR target/117357
gcc/ChangeLog:
* config/i386/i386.md (*rsqrtsf2_sse):
Also enable for !TARGET_SSE_MATH.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr117357.c: New test.
(cherry picked from commit 344356f781ddb7bf0abb11edf9bdd13f6802dea8)
More information about the Gcc-bugs
mailing list