diff options
Diffstat (limited to 'gcc/config/riscv/riscv-v.cc')
-rw-r--r-- | gcc/config/riscv/riscv-v.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/config/riscv/riscv-v.cc b/gcc/config/riscv/riscv-v.cc index bae5e92..c769cf6 100644 --- a/gcc/config/riscv/riscv-v.cc +++ b/gcc/config/riscv/riscv-v.cc @@ -79,8 +79,7 @@ public: } void add_avl_type_operand () { - rtx vlmax_rtx = gen_int_mode (avl_type::VLMAX, Pmode); - add_input_operand (vlmax_rtx, Pmode); + add_input_operand (get_avl_type_rtx (avl_type::VLMAX), Pmode); } void expand (enum insn_code icode, bool temporary_volatile_p = false) @@ -342,4 +341,11 @@ get_prefer_mask_policy () return MASK_ANY; } +/* Get avl_type rtx. */ +rtx +get_avl_type_rtx (enum avl_type type) +{ + return gen_int_mode (type, Pmode); +} + } // namespace riscv_vector |