diff options
author | Ju-Zhe Zhong <juzhe.zhong@rivai.ai> | 2023-01-19 15:02:58 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2023-01-27 18:02:15 +0800 |
commit | 4369d499f711933b8f204f896cb654423e99b039 (patch) | |
tree | a92190869fe9bd58852a4ab0f7195f8c348f3aad /gcc/fortran/trans-openmp.cc | |
parent | 0f024ff988aeaacd8d0f967c5f841ab20fb40c19 (diff) | |
download | gcc-4369d499f711933b8f204f896cb654423e99b039.zip gcc-4369d499f711933b8f204f896cb654423e99b039.tar.gz gcc-4369d499f711933b8f204f896cb654423e99b039.tar.bz2 |
RISC-V: Fix pred_mov constraint for vle.v
The original constraint is incorrect in pred_mov pattern.
Take a look at Alternative 2, the operands[0] is "vr",
operands[1] which is mask operand can be "vm".
Such alternative matching will give the wrong codegen (vle.v v0,0(a5),v0.t)
This is illegal according to RVV ISA.
To fix this issue and not destroy the RA performance, fix this pattern in
this patch.
gcc/ChangeLog:
* config/riscv/vector.md: Fix constraints.
Diffstat (limited to 'gcc/fortran/trans-openmp.cc')
0 files changed, 0 insertions, 0 deletions