diff options
author | Andrew Pinski <apinski@marvell.com> | 2022-11-26 07:37:40 +0000 |
---|---|---|
committer | Andrew Pinski <apinski@marvell.com> | 2022-11-26 18:00:43 +0000 |
commit | f9378e3cc390f9bcc310ce206c6773a817aff2ca (patch) | |
tree | 551a2382aab49fe3e2feb17128a22a3f4f6556f5 /gcc/ada/adaint.c | |
parent | d769c5040874bf9546f2524f3f1d2a894165f92a (diff) | |
download | gcc-f9378e3cc390f9bcc310ce206c6773a817aff2ca.zip gcc-f9378e3cc390f9bcc310ce206c6773a817aff2ca.tar.gz gcc-f9378e3cc390f9bcc310ce206c6773a817aff2ca.tar.bz2 |
tree-optimization/103356 Add missing (~a) == b folding for _Bool
The following makes sure to fold (~a) == b to a ^ b for truth
values.
OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions.
Thanks,
Andrew Pinski
PR tree-optimization/103356
gcc/ChangeLog:
* match.pd: ((~a) == b -> a ^ b): New pattern.
gcc/testsuite/ChangeLog:
* gcc.dg/pr103356-1.c: New test.
Diffstat (limited to 'gcc/ada/adaint.c')
0 files changed, 0 insertions, 0 deletions