]> gcc.gnu.org Git - gcc.git/commit
vect: Call vect_convert_output with the right vecitype [PR114108]
authorTejas Belagod <tejas.belagod@arm.com>
Wed, 6 Mar 2024 10:00:26 +0000 (15:30 +0530)
committerTejas Belagod <tejas.belagod@arm.com>
Fri, 15 Mar 2024 06:10:24 +0000 (11:40 +0530)
commit81f3d963e05de8b17d4ccc7667ead9ed156193a4
tree4978f09fcdee07fbbfe41e5327f516040ddb5811
parentd7d05824ae68da24908d97a10b9ec59d08f75a90
vect: Call vect_convert_output with the right vecitype [PR114108]

This patch fixes a bug where vect_recog_abd_pattern called vect_convert_output
with the incorrect vecitype for the corresponding pattern_stmt.
vect_convert_output expects vecitype to be the vector form of the scalar type
of the LHS of pattern_stmt, but we were passing in the vector form of the LHS
of the new impending conversion statement.  This caused a skew in ABD's
pattern_stmt having the vectype of the following gimple pattern_stmt.

2024-03-06  Tejas Belagod  <tejas.belagod@arm.com>

gcc/ChangeLog:

PR middle-end/114108
* tree-vect-patterns.cc (vect_recog_abd_pattern): Call
vect_convert_output with the correct vecitype.

gcc/testsuite/ChangeLog:
* gcc.dg/vect/pr114108.c: New test.
gcc/testsuite/gcc.dg/vect/pr114108.c [new file with mode: 0644]
gcc/tree-vect-patterns.cc
This page took 0.065775 seconds and 5 git commands to generate.