Fix gcc version compilation difference during code gen (#18)

This commit is contained in:
Lightning 2021-10-29 08:07:32 -07:00 committed by GitHub
parent bc7f150114
commit 1c2496114e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
cse.c
View File

@ -5660,7 +5660,7 @@ fold_rtx (x, insn)
hence not save anything) or be incorrect. */
if (const_arg1 != 0 && GET_CODE (const_arg1) == CONST_INT
&& INTVAL (const_arg1) < 0
&& - INTVAL (const_arg1) >= 0
&& (-INTVAL (const_arg1) >> 0x1f) >= 0
&& GET_CODE (folded_arg1) == REG)
{
rtx new_const = GEN_INT (- INTVAL (const_arg1));