]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Fix warning in predicated.md
authorJuzhe-Zhong <juzhe.zhong@rivai.ai>
Fri, 2 Jun 2023 03:04:43 +0000 (11:04 +0800)
committerPan Li <pan2.li@intel.com>
Fri, 2 Jun 2023 06:10:40 +0000 (14:10 +0800)
commit37ff12b96d7c1ee5fe135253c7b9db7e2ba61b71
treec02a75a629fa5bb673fc52def327f99db7c7df03
parent4fe6e12204535545edf7f035d4dc79c1404058cf
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.
gcc/config/riscv/predicates.md
This page took 0.053353 seconds and 6 git commands to generate.