middle-end/110461 - pattern applying wrongly to vectors
commit1e6f1659bd7337e91a88086f8092ada01e80ac94
authorRichard Biener <rguenther@suse.de>
Thu, 29 Jun 2023 07:15:27 +0000 (29 09:15 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 29 Jun 2023 08:10:51 +0000 (29 10:10 +0200)
tree6f274b59ce45cb74a7a3ccefd6f15c3fade6e7d8
parentd81c7a25365d3cc87e5edad5e68049b149af55b4
middle-end/110461 - pattern applying wrongly to vectors

The following guards a match.pd pattern that wasn't supposed to
apply to vectors and thus runs into TYPE_PRECISION checking.  For
vector support the constant case is lacking and the pattern would
have missing optab support checking for the result operation.

PR middle-end/110461
* match.pd (bitop (convert@2 @0) (convert?@3 @1)): Disable
for VECTOR_TYPE_P.

* gcc.dg/pr110461.c: New testcase.
gcc/match.pd
gcc/testsuite/gcc.dg/pr110461.c [new file with mode: 0644]