public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r15-365] pru: Fix register class checks in predicates
@ 2024-05-10 18:42 Dimitar Dimitrov
0 siblings, 0 replies; only message in thread
From: Dimitar Dimitrov @ 2024-05-10 18:42 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d4d30461c02b50c07f92c8cccb87da528a806d3e
commit r15-365-gd4d30461c02b50c07f92c8cccb87da528a806d3e
Author: Dimitar Dimitrov <dimitar@dinux.eu>
Date: Thu May 9 22:19:24 2024 +0300
pru: Fix register class checks in predicates
The register class checks in the multiply-source predicates was
incorrectly using the register number instead of the register
class for comparison.
gcc/ChangeLog:
* config/pru/predicates.md (pru_mulsrc0_operand): Use register
class instead of register number for the check.
(pru_mulsrc1_operand): Ditto.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diff:
---
gcc/config/pru/predicates.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/pru/predicates.md b/gcc/config/pru/predicates.md
index 77b3316b98ee..55635599609b 100644
--- a/gcc/config/pru/predicates.md
+++ b/gcc/config/pru/predicates.md
@@ -103,7 +103,7 @@
else
return 0;
- return REGNO_REG_CLASS (regno) == MULSRC0_REGNUM
+ return REGNO_REG_CLASS (regno) == MULSRC0_REGS
|| regno >= FIRST_PSEUDO_REGISTER;
}
return 0;
@@ -123,7 +123,7 @@
else
return 0;
- return REGNO_REG_CLASS (regno) == MULSRC1_REGNUM
+ return REGNO_REG_CLASS (regno) == MULSRC1_REGS
|| regno >= FIRST_PSEUDO_REGISTER;
}
return 0;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-10 18:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 18:42 [gcc r15-365] pru: Fix register class checks in predicates Dimitar Dimitrov
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).