aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.cc
diff options
context:
space:
mode:
authorFrom: Juzhe-Zhong <juzhe.zhong@rivai.ai>2023-05-30 10:16:09 +0800
committerPan Li <pan2.li@intel.com>2023-05-30 10:16:09 +0800
commitb1b92e72cdad1dc51058a26f1dadddd406fb8472 (patch)
tree5e6b2b70352ea41caa49b57a3c064b98a34b9964 /gcc/combine.cc
parent908546602e33e8810e98acd7634b22013346aa18 (diff)
downloadgcc-b1b92e72cdad1dc51058a26f1dadddd406fb8472.zip
gcc-b1b92e72cdad1dc51058a26f1dadddd406fb8472.tar.gz
gcc-b1b92e72cdad1dc51058a26f1dadddd406fb8472.tar.bz2
RISC-V: Fix warning in riscv.md
Notice there is warning: ../../../riscv-gcc/gcc/config/riscv/riscv.md:1356:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (INTVAL (operands[2]) == GET_MODE_MASK (HImode)) ../../../riscv-gcc/gcc/config/riscv/riscv.md:1358:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (INTVAL (operands[2]) == GET_MODE_MASK (SImode)) ../../../riscv-gcc/gcc/config/riscv/riscv.md: In function ‘rtx_def* gen_anddi3(rtx, rtx, rtx)’: ../../../riscv-gcc/gcc/config/riscv/riscv.md:1356:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (INTVAL (operands[2]) == GET_MODE_MASK (HImode)) ../../../riscv-gcc/gcc/config/riscv/riscv.md:1358:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if (INTVAL (operands[2]) == GET_MODE_MASK (SImode)) Add unsigned conversion to fix this warning. Signed-off-by: Juzhe-Zhong <juzhe.zhong@rivai.ai> gcc/ChangeLog: * config/riscv/riscv.md: Fix signed and unsigned comparison warning.
Diffstat (limited to 'gcc/combine.cc')
0 files changed, 0 insertions, 0 deletions