diff options
author | Monk Chiang <monk.chiang@sifive.com> | 2024-01-24 10:19:28 -0700 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-01-24 10:19:57 -0700 |
commit | fb54b9772816968032518d4008be5090e0d95109 (patch) | |
tree | 342c013c75d237ef33ffb80af71833f51bc27fc5 /gcc/tree-vect-loop.cc | |
parent | 0f5a9a00e3ab1fe96142f304cfbcf3f63b15f326 (diff) | |
download | gcc-fb54b9772816968032518d4008be5090e0d95109.zip gcc-fb54b9772816968032518d4008be5090e0d95109.tar.gz gcc-fb54b9772816968032518d4008be5090e0d95109.tar.bz2 |
[PATCH v3] RISC-V: Add split pattern to generate SFB instructions. [PR113095]
Since the match.pd transforms (zero_one == 0) ? y : z <op> y,
into ((typeof(y))zero_one * z) <op> y. Add splitters to recongize
this expression to generate SFB instructions.
gcc/ChangeLog:
PR target/113095
* config/riscv/sfb.md: New splitters to rewrite single bit
sign extension as the condition to SFB instructions.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/sfb.c: New test.
* gcc.target/riscv/pr113095.c: New test.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions