]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Fix an ICE in vectorizable_simd_clone_call
authory00520163 <yangyang305@huawei.com>
Mon, 20 Jul 2020 18:47:05 +0000 (19:47 +0100)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:18:36 +0000 (13:18 -0300)
commite09313ee673a7a23f59e2d34982f707c69a50ac0
tree2ffd4423bb1bfaa3c7bc1bad549575b58e9eec3e
parent5337d0495953a742d5e453665cb002d0c79ca6e8
vect: Fix an ICE in vectorizable_simd_clone_call

In vectorizable_simd_clone_call, type compatibility is handled based on
the number of elements and the type compatibility of elements, which is
not enough. This patch add VIEW_CONVERT_EXPRs if the arguments types
and return type of simd clone function are distinct with the vectype of
stmt.

2020-07-20  Yang Yang  <yangyang305@huawei.com>

gcc/ChangeLog:

* tree-vect-stmts.c (vectorizable_simd_clone_call): Add
VIEW_CONVERT_EXPRs if the arguments types and return type
of simd clone function are distinct with the vectype of stmt.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/sve/pr96195.c: New test.
gcc/testsuite/gcc.target/aarch64/sve/pr96195.c [new file with mode: 0644]
gcc/tree-vect-stmts.c