https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110182
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- commit 3e12669a0eb968cfcbe9242b382fd8020935edf8 (origin/master, origin/HEAD) Author: Richard Biener <rguent...@suse.de> 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.