]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Supress warning for comparison of integer expressions of different signedness
authorKito Cheng <kito.cheng@sifive.com>
Fri, 17 Jun 2022 13:57:35 +0000 (21:57 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 17 Jun 2022 13:58:50 +0000 (21:58 +0800)
gcc/ChangeLog:

* config/riscv/bitmanip.md: Supress warning.

gcc/config/riscv/bitmanip.md

index 6c1ccc6f8c5c7da36a51f264951f097bef40ee08..d1570ce8508c072941f9478fd82ac2e7201ab77e 100644 (file)
 {
        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;