gcc/ChangeLog:
* config/riscv/riscv.cc: Comment updates.
* config/riscv/riscv.h: Ditto.
Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
return riscv_const_insns (x) > 0;
}
-/* Implement TARGET_CANNOT_FORCE_CONST_MEM. */
+/* Implement TARGET_CANNOT_FORCE_CONST_MEM.
+ Return true if X cannot (or should not) be spilled to the
+ constant pool. */
static bool
riscv_cannot_force_const_mem (machine_mode mode ATTRIBUTE_UNUSED, rtx x)
&& GET_MODE_CLASS (mode2) == MODE_FLOAT));
}
-/* Implement CLASS_MAX_NREGS. */
+/* Implement TARGET_CLASS_MAX_NREGS. */
static unsigned char
riscv_class_max_nregs (reg_class_t rclass, machine_mode mode)
- FRAME_POINTER_REGNUM
- 1 vl register
- 1 vtype register
- - 30 unused registers for future expansion
+ - 28 unused registers for future expansion
- 32 vector registers */
#define FIRST_PSEUDO_REGISTER 128