diff options
author | Robin Dapp <rdapp@ventanamicro.com> | 2024-08-08 10:31:22 +0200 |
---|---|---|
committer | Robin Dapp <rdapp@ventanamicro.com> | 2024-11-18 11:48:42 +0100 |
commit | b89273a049a76ffc29dd43a536ad329f0d994c05 (patch) | |
tree | 55bc2c014d2c2fdf0f9ea55910b6c6f4093819fe /.gitattributes | |
parent | ebf30772415cfd3fa544fc7262b28b948591538f (diff) | |
download | gcc-b89273a049a76ffc29dd43a536ad329f0d994c05.zip gcc-b89273a049a76ffc29dd43a536ad329f0d994c05.tar.gz gcc-b89273a049a76ffc29dd43a536ad329f0d994c05.tar.bz2 |
RISC-V: Add else operand to masked loads [PR115336].
This patch adds else operands to masked loads. Currently the default
else operand predicate just accepts "undefined" (i.e. SCRATCH) values.
PR middle-end/115336
PR middle-end/116059
gcc/ChangeLog:
* config/riscv/autovec.md: Add else operand.
* config/riscv/predicates.md (maskload_else_operand): New
predicate.
* config/riscv/riscv-v.cc (get_else_operand): Remove static.
(expand_load_store): Use get_else_operand and adjust index.
(expand_gather_scatter): Ditto.
(expand_lanes_load_store): Ditto.
gcc/testsuite/ChangeLog:
* gcc.target/riscv/rvv/autovec/pr115336.c: New test.
* gcc.target/riscv/rvv/autovec/pr116059.c: New test.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions