public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-1484] RISC-V: Fix warning in predicated.md
@ 2023-06-02 6:11 Pan Li
0 siblings, 0 replies; only message in thread
From: Pan Li @ 2023-06-02 6:11 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:37ff12b96d7c1ee5fe135253c7b9db7e2ba61b71
commit r14-1484-g37ff12b96d7c1ee5fe135253c7b9db7e2ba61b71
Author: Juzhe-Zhong <juzhe.zhong@rivai.ai>
Date: Fri Jun 2 11:04:43 2023 +0800
RISC-V: Fix warning in predicated.md
Notice there is warning in predicates.md:
../../../riscv-gcc/gcc/config/riscv/predicates.md: In function ‘bool arith_operand_or_mode_mask(rtx, machine_mode)’:
../../../riscv-gcc/gcc/config/riscv/predicates.md:33:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
(match_test "INTVAL (op) == GET_MODE_MASK (HImode)
../../../riscv-gcc/gcc/config/riscv/predicates.md:34:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
|| INTVAL (op) == GET_MODE_MASK (SImode)"))))
gcc/ChangeLog:
* config/riscv/predicates.md: Change INTVAL into UINTVAL.
Diff:
---
gcc/config/riscv/predicates.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/predicates.md b/gcc/config/riscv/predicates.md
index 1ed84850e35..d14b1ca30bb 100644
--- a/gcc/config/riscv/predicates.md
+++ b/gcc/config/riscv/predicates.md
@@ -31,7 +31,7 @@
(ior (match_operand 0 "arith_operand")
(and (match_code "const_int")
(match_test "INTVAL (op) == GET_MODE_MASK (HImode)
- || INTVAL (op) == GET_MODE_MASK (SImode)"))))
+ || UINTVAL (op) == GET_MODE_MASK (SImode)"))))
(define_predicate "lui_operand"
(and (match_code "const_int")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-06-02 6:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-02 6:11 [gcc r14-1484] RISC-V: Fix warning in predicated.md Pan Li
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).