]> git.ipfire.org Git - thirdparty/gcc.git/commit
middle-end/110182 - TYPE_PRECISION on VECTOR_TYPE causes wrong-code
authorRichard Biener <rguenther@suse.de>
Fri, 9 Jun 2023 07:29:09 +0000 (09:29 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 9 Jun 2023 09:07:08 +0000 (11:07 +0200)
commit3e12669a0eb968cfcbe9242b382fd8020935edf8
treec0aaf7ed70da0066ef3e904128513979f75c4274
parent3ec1d76a359542ed4c8370390efa9ee9e25e757f
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.
gcc/match.pd