RISC-V: Supress warning for comparison of integer expressions of different signedness

gcc/ChangeLog:

	* config/riscv/bitmanip.md: Supress warning.
This commit is contained in:
Kito Cheng 2022-06-17 21:57:35 +08:00
parent 040f822461
commit d6b423882a

View file

@ -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;