mirror of
https://github.com/pmret/gcc-papermario.git
synced 2024-09-18 22:32:27 +02:00
Fix gcc version compilation difference during code gen (#18)
This commit is contained in:
parent
bc7f150114
commit
1c2496114e
2
cse.c
2
cse.c
@ -5660,7 +5660,7 @@ fold_rtx (x, insn)
|
|||||||
hence not save anything) or be incorrect. */
|
hence not save anything) or be incorrect. */
|
||||||
if (const_arg1 != 0 && GET_CODE (const_arg1) == CONST_INT
|
if (const_arg1 != 0 && GET_CODE (const_arg1) == CONST_INT
|
||||||
&& INTVAL (const_arg1) < 0
|
&& INTVAL (const_arg1) < 0
|
||||||
&& - INTVAL (const_arg1) >= 0
|
&& (-INTVAL (const_arg1) >> 0x1f) >= 0
|
||||||
&& GET_CODE (folded_arg1) == REG)
|
&& GET_CODE (folded_arg1) == REG)
|
||||||
{
|
{
|
||||||
rtx new_const = GEN_INT (- INTVAL (const_arg1));
|
rtx new_const = GEN_INT (- INTVAL (const_arg1));
|
||||||
|
Loading…
Reference in New Issue
Block a user