[Bug target/125972] [16/17 Regression] s390: Deal with non-compare conditions during RTX costing
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 1 11:07:49 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125972
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Stefan Schulze Frielinghaus
<stefansf@gcc.gnu.org>:
https://gcc.gnu.org/g:022e5449d2b31930999ef63dd3d2dc31ba47a3d4
commit r14-12718-g022e5449d2b31930999ef63dd3d2dc31ba47a3d4
Author: Stefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Date: Fri Jun 26 16:46:48 2026 +0200
s390: Deal with non-compare conditions during RTX costing [PR125972]
During cprop we have to cost intermediate RTXs which may have
non-compare conditions as e.g. r108={(0x1)?r113:r109} which get folded
later on.
First seen with r16-5417-g97a7d568f3d720.
PR target/125972
gcc/ChangeLog:
* config/s390/s390.cc (s390_rtx_costs): Deal with non-compare
conditions during costing. Also fix some indentation.
gcc/testsuite/ChangeLog:
* gcc.target/s390/pr125972.c: New test.
(cherry picked from commit f070b1aaa0f87dc6405a1840581c17c005a1f5b1)
More information about the Gcc-bugs
mailing list