diff options
author | Patrick O'Neill <patrick@rivosinc.com> | 2024-08-20 12:01:22 -0700 |
---|---|---|
committer | Patrick O'Neill <patrick@rivosinc.com> | 2024-08-27 10:03:10 -0700 |
commit | 282bbc9381c563c746a43bf35e93d349188cc8e8 (patch) | |
tree | cb786aa513ac97337122d3853953ad096493e422 /gcc/cp/parser.cc | |
parent | 771256bcb9ddc478dd0a8ecf929dfda5334f0ff3 (diff) | |
download | gcc-282bbc9381c563c746a43bf35e93d349188cc8e8.zip gcc-282bbc9381c563c746a43bf35e93d349188cc8e8.tar.gz gcc-282bbc9381c563c746a43bf35e93d349188cc8e8.tar.bz2 |
RISC-V: Handle 0.0 floating point pattern costing to match const_vector expander
The comment previously here stated that the Wc0/Wc1 cases are handled by
the vi constraint but that is not true for the 0.0 Wc0 case.
gcc/ChangeLog:
* config/riscv/riscv-v.h (valid_vec_immediate_p): Add new helper.
* config/riscv/riscv-v.cc (valid_vec_immediate_p): Ditto.
(expand_const_vector): Use new helper.
* config/riscv/riscv.cc (riscv_const_insns): Handle 0.0 floating-point
case.
Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
Diffstat (limited to 'gcc/cp/parser.cc')
0 files changed, 0 insertions, 0 deletions