From: Vineet Gupta <vineetg@rivosinc.com>
To: gcc-patches@gcc.gnu.org
Cc: Vineet Gupta <vineetg@rivosinc.com>
Subject: [Committed 2/2] RISC-V: miscll comment fixes [NFC]
Date: Fri, 3 May 2024 09:37:43 -0700 [thread overview]
Message-ID: <20240503163743.2107520-1-vineetg@rivosinc.com> (raw)
In-Reply-To: <dce1e157-f540-43dd-ac97-ba2cb979ca3c@gmail.com>
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 | 6 ++++--
gcc/config/riscv/riscv.h | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc
index 8ed9df8126a6..44945d47fd64 100644
--- a/gcc/config/riscv/riscv.cc
+++ b/gcc/config/riscv/riscv.cc
@@ -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)
diff --git a/gcc/config/riscv/riscv.h b/gcc/config/riscv/riscv.h
index 7797e67317a6..58d0b09bf7d9 100644
--- a/gcc/config/riscv/riscv.h
+++ b/gcc/config/riscv/riscv.h
@@ -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
--
2.34.1
next prev parent reply other threads:[~2024-05-03 16:37 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-02 18:59 [PATCH 0/3] Miscll fixlets Vineet Gupta
2024-05-02 18:59 ` [PATCH 1/3] docs: rtl: document GET_MODE_INNER Vineet Gupta
2024-05-02 20:36 ` Jeff Law
2024-05-02 20:48 ` [PATCH v2 " Vineet Gupta
2024-05-03 16:36 ` [Committed 1/2] " Vineet Gupta
2024-05-02 18:59 ` [PATCH 2/3] RISC-V: miscll comment fixes [NFC] Vineet Gupta
2024-05-02 20:36 ` Jeff Law
2024-05-03 16:37 ` Vineet Gupta [this message]
2024-05-02 18:59 ` [PATCH 3/3] combine: initialize a local var Vineet Gupta
2024-05-02 20:38 ` Jeff Law
2024-05-02 20:40 ` Vineet Gupta
2024-05-03 8:30 ` Segher Boessenkool
2024-05-03 8:26 ` Segher Boessenkool
2024-05-03 16:41 ` Vineet Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240503163743.2107520-1-vineetg@rivosinc.com \
--to=vineetg@rivosinc.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).