]> 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>
Thu, 19 May 2022 14:02:34 +0000 (16:02 +0200)
commit33914983cf3734c2f8079963ba49fcc117499ef3
treef26a55477857083e9e26c41572ac6c79e21f5885
parentb2557f9081e5bf440abe3fc184cbdaea0447ec64
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.

(cherry picked from commit 36f1de95a61132f63c0c07ef154abd9f435721ac)
gcc/gimple-isel.cc
gcc/testsuite/gcc.target/arm/pr105312.c [new file with mode: 0644]