aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorAndrew Pinski <quic_apinski@quicinc.com>2024-08-12 16:00:45 -0700
committerAndrew Pinski <quic_apinski@quicinc.com>2024-08-20 06:59:14 -0700
commitb73373520f0ed5d131d2cd6ee9078939a98d7a0d (patch)
treedcf3cb5de1cdd46bb4c45c9a8b94431bc374065c /libcpp
parent82a2f1386b2e8c951e910e1096a04bed21bbd39b (diff)
downloadgcc-b73373520f0ed5d131d2cd6ee9078939a98d7a0d.zip
gcc-b73373520f0ed5d131d2cd6ee9078939a98d7a0d.tar.gz
gcc-b73373520f0ed5d131d2cd6ee9078939a98d7a0d.tar.bz2
match: extend the `((a CMP b) ? c : 0) | ((a CMP' b) ? d : 0)` patterns to support ^ and + [PR103660]
r13-4620-g4d9db4bdd458 Added a few patterns and some of them can be extended to support XOR and PLUS. This extends the patterns to support XOR and PLUS instead of just IOR. Bootstrapped and tested on x86_64-linux-gnu. PR tree-optimization/103660 gcc/ChangeLog: * match.pd (`((a CMP b) ? c : 0) | ((a CMP' b) ? d : 0)`): Extend to support XOR and PLUS. gcc/testsuite/ChangeLog: * g++.dg/tree-ssa/pr103660-2.C: New test. * g++.dg/tree-ssa/pr103660-3.C: New test. * gcc.dg/tree-ssa/pr103660-2.c: New test. * gcc.dg/tree-ssa/pr103660-3.c: New test. Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions