diff options
author | Robin Dapp <rdapp.gcc@gmail.com> | 2024-01-15 16:23:30 +0100 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2024-01-25 16:21:33 +0100 |
commit | 660e17f00658b68115282e6de38243e3c6cc1ee2 (patch) | |
tree | 6491681b5a30963c0734c1e181fd8424735c849c /gcc/cp/module.cc | |
parent | 90880e117aa70a5ecd9b7df4381410c2ea0dcfdb (diff) | |
download | gcc-660e17f00658b68115282e6de38243e3c6cc1ee2.zip gcc-660e17f00658b68115282e6de38243e3c6cc1ee2.tar.gz gcc-660e17f00658b68115282e6de38243e3c6cc1ee2.tar.bz2 |
fold-const: Handle AND, IOR, XOR with stepped vectors [PR112971].
Found in PR112971 this patch adds folding support for bitwise operations
of const duplicate zero/one vectors with stepped vectors.
On riscv we have the situation that a folding would perpetually continue
without simplifying because e.g. {0, 0, 0, ...} & {7, 6, 5, ...} would
not be folded to {0, 0, 0, ...}.
gcc/ChangeLog:
PR middle-end/112971
* fold-const.cc (simplify_const_binop): New function for binop
simplification of two constant vectors when element-wise
handling is not necessary.
(const_binop): Call new function.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/pr112971.c: New test.
Diffstat (limited to 'gcc/cp/module.cc')
0 files changed, 0 insertions, 0 deletions