From: Kito Cheng Date: Fri, 17 Jun 2022 13:57:35 +0000 (+0800) Subject: RISC-V: Supress warning for comparison of integer expressions of different signedness X-Git-Tag: basepoints/gcc-14~6054 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6b423882a05d7b4f40ae1e9d942c9c4c13761b7;p=thirdparty%2Fgcc.git RISC-V: Supress warning for comparison of integer expressions of different signedness gcc/ChangeLog: * config/riscv/bitmanip.md: Supress warning. --- 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;