tree-optimization/112990 - unsupported VEC_PERM from match pattern
commitb9baead90d74e9211fc94d655ecd5d3af3858158
authorRichard Biener <rguenther@suse.de>
Wed, 13 Dec 2023 08:38:59 +0000 (13 09:38 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 13 Dec 2023 08:42:17 +0000 (13 09:42 +0100)
tree4737f9f5a7c35318dc7b194a9c23c35f89a2823d
parent97094d2ffd7d00261e6d7cc5d4a62dc7c2c89b64
tree-optimization/112990 - unsupported VEC_PERM from match pattern

The following avoids creating an unsupported VEC_PERM after vector
lowering from the pattern merging a bit-insert from a bit-field-ref
to a VEC_PERM.  For the already existing s390 testcase we get
TImode vectors which later ICE during attempted expansion of
a vec_perm_const.

PR tree-optimization/112990
* match.pd (bit_insert @0 (BIT_FIELD_REF @1 ..) ..):
Restrict to vector modes after lowering.
gcc/match.pd