tree-optimization/98048 - fix vector lowering of ABSU_EXPR
authorRichard Biener <rguenther@suse.de>
Mon, 30 Nov 2020 09:41:36 +0000 (10:41 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 30 Nov 2020 12:27:56 +0000 (13:27 +0100)
commit4bcded23eb87c55a1a3fcd23d5629a0c35aee4ba
tree75d6722f676cffbd3dc356396dc6f6037827dbcb
parent5877c544c18259e6f8a07ec99e22bbfe8c6d64a6
tree-optimization/98048 - fix vector lowering of ABSU_EXPR

This makes sure to use the correct type for the LHS of the scalar
replacement statement.

20220-11-30  Richard Biener  <rguenther@suse.de>

PR tree-optimization/98048
* tree-vect-generic.c (expand_vector_operations_1): Use the
correct type for the scalar LHS replacement.

* gcc.dg/vect/pr98048.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr98048.c [new file with mode: 0644]
gcc/tree-vect-generic.c