]> gcc.gnu.org Git - gcc.git/commitdiff
RISC-V: miscll comment fixes [NFC]
authorVineet Gupta <vineetg@rivosinc.com>
Tue, 1 Mar 2022 11:45:19 +0000 (03:45 -0800)
committerVineet Gupta <vineetg@rivosinc.com>
Fri, 3 May 2024 16:33:02 +0000 (09:33 -0700)
gcc/ChangeLog:
* config/riscv/riscv.cc: Comment updates.
* config/riscv/riscv.h: Ditto.

Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
gcc/config/riscv/riscv.cc
gcc/config/riscv/riscv.h

index 8ed9df8126a61e35a0231e8e18ec12e0c661fb7f..44945d47fd6495249a9567fe8569c86763eca77c 100644 (file)
@@ -1258,7 +1258,9 @@ riscv_legitimate_constant_p (machine_mode mode ATTRIBUTE_UNUSED, rtx x)
   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)
@@ -8624,7 +8626,7 @@ riscv_modes_tieable_p (machine_mode mode1, machine_mode mode2)
               && 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)
index 7797e67317a6a7c5f73a6e83a35136ffdc8a7634..58d0b09bf7d910bbeb891082cfcf392bac6ce5ff 100644 (file)
@@ -315,7 +315,7 @@ ASM_MISA_SPEC
        - 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
This page took 0.076846 seconds and 5 git commands to generate.