Clamp vec_perm_expr index in simplify_bitfield_ref to avoid ICE.
authorliuhongt <hongtao.liu@intel.com>
Mon, 16 May 2022 01:06:04 +0000 (09:06 +0800)
committerliuhongt <hongtao.liu@intel.com>
Tue, 17 May 2022 00:59:42 +0000 (08:59 +0800)
commit1fba0608d12a209a5d76d65bcb1dec1c07bc33e9
treeb013b616a7ae843b415190a79e6b6018574d675c
parent702bd11fa7ddfce0d24581251e979e8a6d7c0d4d
Clamp vec_perm_expr index in simplify_bitfield_ref to avoid ICE.

gcc/ChangeLog:

PR tree-optimization/105591
* tree-ssa-forwprop.cc (simplify_bitfield_ref): Clamp
vec_perm_expr index.

gcc/testsuite/ChangeLog:

* gcc.dg/pr105591.c: New test.
gcc/testsuite/gcc.dg/pr105591.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.cc