]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/117138 - fix ICE with vector comparison in COND_EXPR
authorRichard Biener <rguenther@suse.de>
Tue, 15 Oct 2024 08:23:06 +0000 (10:23 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 15 Oct 2024 09:15:25 +0000 (11:15 +0200)
commit28982c271cbbed3580e4c7c784892694c3b6b2de
treea2d8380ff459b2d85586a5d882cbe872f6676bfb
parent79b881df72c946f2ba61879c36ae93b0cb974617
tree-optimization/117138 - fix ICE with vector comparison in COND_EXPR

The range folding code of COND_EXPRs missed a check whether the
comparison operand type is supported.

PR tree-optimization/117138
* gimple-range-fold.cc (fold_using_range::condexpr_adjust):
Check if the comparison operand type is supported.

* gcc.dg/torture/pr117138.c: New testcase.
gcc/gimple-range-fold.cc
gcc/testsuite/gcc.dg/torture/pr117138.c [new file with mode: 0644]