https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110182
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |11.4.0
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Known to work| |11.4.1
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
commit 40aa486160620d4270c9d6e777722c49823f552c
Author: Richard Biener <[email protected]>
Date: Fri Jun 9 09:29:09 2023 +0200
middle-end/110182 - TYPE_PRECISION on VECTOR_TYPE causes wrong-code
When folding two conversions in a row we use TYPE_PRECISION but
that's invalid for VECTOR_TYPE. The following fixes this by
using element_precision instead.
* match.pd (two conversions in a row): Use element_precision
to DTRT for VECTOR_TYPE.
(cherry picked from commit 3e12669a0eb968cfcbe9242b382fd8020935edf8)