]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Add vector_scalar_shift_operand
authorPalmer Dabbelt <palmer@rivosinc.com>
Thu, 11 May 2023 22:28:49 +0000 (15:28 -0700)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 31 Aug 2023 12:45:01 +0000 (20:45 +0800)
commit0337555c7a2524bd334bafdc06dd801818eb34b6
treef5b9fa3887677dd5ee87ca6609653f458399f6cc
parent4da3065a6422062b029df9660a226297802455f4
RISC-V: Add vector_scalar_shift_operand

The vector shift immediates happen to have the same constraints as some
of the CSR-related operands, but it's a different usage.  This adds a
name for them, so I don't get confused again next time.

gcc/ChangeLog:

* config/riscv/autovec.md (shifts): Use
vector_scalar_shift_operand.
* config/riscv/predicates.md (vector_scalar_shift_operand): New
predicate.
gcc/config/riscv/autovec.md
gcc/config/riscv/predicates.md