Skip to content

Commit

Permalink
Fix incorrect emitted subu instead of addu.
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Jan 27, 2023
1 parent a6d7b78 commit afc9595
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
if: matrix.TARGET.OS == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y build-essential bison file gperf gcc gcc-multilib
sudo apt-get install -y build-essential bison file gperf gcc gcc-multilib autoconf
- name: Configure for mips
shell: bash
run: |
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,10 @@ gcc/tree-check.h
gcc/unprotoize
gcc/xgcc
gcc/xlimits.h

gcc/autom4te.cache/requests
gcc/autom4te.cache/output.*
gcc/autom4te.cache/traces.*
gcc/config.in~
gcc/config.bak
gcc/configure~
2 changes: 1 addition & 1 deletion gcc/cse.c
Original file line number Diff line number Diff line change
Expand Up @@ -5602,7 +5602,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));
Expand Down

0 comments on commit afc9595

Please sign in to comment.