public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1153] RISC-V: Supress warning for comparison of integer expressions of different signedness
@ 2022-06-17 13:59 Kito Cheng
0 siblings, 0 replies; only message in thread
From: Kito Cheng @ 2022-06-17 13:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:d6b423882a05d7b4f40ae1e9d942c9c4c13761b7
commit r13-1153-gd6b423882a05d7b4f40ae1e9d942c9c4c13761b7
Author: Kito Cheng <kito.cheng@sifive.com>
Date: Fri Jun 17 21:57:35 2022 +0800
RISC-V: Supress warning for comparison of integer expressions of different signedness
gcc/ChangeLog:
* config/riscv/bitmanip.md: Supress warning.
Diff:
---
gcc/config/riscv/bitmanip.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/riscv/bitmanip.md b/gcc/config/riscv/bitmanip.md
index 6c1ccc6f8c5..d1570ce8508 100644
--- a/gcc/config/riscv/bitmanip.md
+++ b/gcc/config/riscv/bitmanip.md
@@ -102,7 +102,7 @@
{
unsigned HOST_WIDE_INT mask = UINTVAL (operands[3]);
/* scale: shift within the sh[123]add.uw */
- int scale = 32 - clz_hwi (mask);
+ unsigned HOST_WIDE_INT scale = 32 - clz_hwi (mask);
/* bias: pre-scale amount (i.e. the prior shift amount) */
int bias = ctz_hwi (mask) - scale;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-17 13:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-17 13:59 [gcc r13-1153] RISC-V: Supress warning for comparison of integer expressions of different signedness Kito Cheng
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).