]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/105312 - fix ISEL VCOND expansion
authorRichard Biener <rguenther@suse.de>
Wed, 20 Apr 2022 08:17:24 +0000 (10:17 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 20 Apr 2022 11:27:24 +0000 (13:27 +0200)
commit36f1de95a61132f63c0c07ef154abd9f435721ac
treefe13b569b1add4fa1843e7ef2c1c239328da5f09
parent0707f4280907c395b543464175411f8155817a9e
tree-optimization/105312 - fix ISEL VCOND expansion

The following aligns ISEL VEC_COND_EXPR expansion using VCOND
with the optab query done by vector lowering.  Instead of only
allowing the signed optab to provide EQ/NE compares we allow both
here though since there seems to be no documented canonicalization.

2022-04-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105312
* gimple-isel.cc (gimple_expand_vec_cond_expr): Query both
VCOND and VCONDU for EQ and NE.

* gcc.target/arm/pr105312.c: New testcase.
gcc/gimple-isel.cc
gcc/testsuite/gcc.target/arm/pr105312.c [new file with mode: 0644]