RISC-V: Add vector registers in TARGET_CONDITIONAL_REGISTER_USAGE
gcc/ChangeLog: * config/riscv/riscv.cc (riscv_conditional_register_usage): Add vector registers.
This commit is contained in:
parent
8fe75147a9
commit
e8c83ab9d5
1 changed files with 9 additions and 0 deletions
|
@ -5438,6 +5438,15 @@ riscv_conditional_register_usage (void)
|
|||
for (int regno = FP_REG_FIRST; regno <= FP_REG_LAST; regno++)
|
||||
call_used_regs[regno] = 1;
|
||||
}
|
||||
|
||||
if (!TARGET_VECTOR)
|
||||
{
|
||||
for (int regno = V_REG_FIRST; regno <= V_REG_LAST; regno++)
|
||||
fixed_regs[regno] = call_used_regs[regno] = 1;
|
||||
|
||||
fixed_regs[VTYPE_REGNUM] = call_used_regs[VTYPE_REGNUM] = 1;
|
||||
fixed_regs[VL_REGNUM] = call_used_regs[VL_REGNUM] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Return a register priority for hard reg REGNO. */
|
||||
|
|
Loading…
Add table
Reference in a new issue