aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>2023-02-14 23:04:49 +0800
committerKito Cheng <kito.cheng@sifive.com>2023-02-17 10:46:11 +0800
commitb9da8f063a6c65228172528d5cbf9eff511350da (patch)
tree7f15ce1033cf6faa108f05bb683e03648b895651 /gcc/rust
parent061b13ed014ba0b6891800a5c7f852bf58e4d856 (diff)
downloadgcc-b9da8f063a6c65228172528d5cbf9eff511350da.zip
gcc-b9da8f063a6c65228172528d5cbf9eff511350da.tar.gz
gcc-b9da8f063a6c65228172528d5cbf9eff511350da.tar.bz2
RISC-V: Replace simm32_p with immediate_operand (Pmode)
simm32_p is used to check constant int value within 32-bit. It's used in handling SEW = 64 in rv32 system since such constant int value with 32-bit allow us use vx instruction. The current implementation of simm32_p is quite ugly and now I figure out immedate_operand (op, pmode) can help us to check whether the op is a constant value within 32-bit. I already have a bunch testcases to test SEW = 64 in rv32 system and all regression tests are passed with this patch. gcc/ChangeLog: * config/riscv/riscv-protos.h (simm32_p): Remove. * config/riscv/riscv-v.cc (simm32_p): Ditto. * config/riscv/vector.md: Use immediate_operand instead of riscv_vector::simm32_p.
Diffstat (limited to 'gcc/rust')
0 files changed, 0 insertions, 0 deletions