Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
[predicate] remove register_even_operand predicate.
Browse files Browse the repository at this point in the history
- remove register_even_operand predicate. The even-odd pairs of register allocation in rv32_zpsf is handled by riscv_hard_regno_mode_ok hook now
  • Loading branch information
linsinan1995 committed May 13, 2021
1 parent 29d62e2 commit ecd8198
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 87 deletions.
18 changes: 0 additions & 18 deletions gcc/config/riscv/predicates.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,24 +213,6 @@
return riscv_gpr_save_operation_p (op);
})

(define_predicate "register_even_operand"
(match_operand 0 "register_operand")
{
if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op); /* Possibly a MEM */

if (!REG_P (op))
return false;

if (REGNO (op) >= FIRST_PSEUDO_REGISTER)
return true;

return ((!TARGET_64BIT
&& GP_REG_P (REGNO (op))
&& (REGNO (op) & 1) == 0)
|| (TARGET_64BIT && GP_REG_P (REGNO (op))));
})

(define_predicate "imm2u_operand"
(and (match_operand 0 "const_int_operand")
(match_test "satisfies_constraint_u02 (op)")))
Expand Down
Loading

0 comments on commit ecd8198

Please sign in to comment.