Skip to content

Commit 9b51ac0

Browse files
author
Claudiu Zissulescu
committed
compact_memory_operand_p: code density accepts only u5 immediate
1 parent 9d13df9 commit 9b51ac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/config/arc/arc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9913,10 +9913,10 @@ compact_memory_operand_p (rtx op, enum machine_mode mode, bool code_density, boo
99139913
valid = true;
99149914
break;
99159915
case 4:
9916-
/* u5 immediates allowed in 32bit access code
9916+
/* Only u5 immediates allowed in 32bit access code
99179917
density instructions. */
99189918
if (REGNO (plus0) <= 31)
9919-
valid = true;
9919+
return ((off < 32) && (off % 4 == 0));
99209920
break;
99219921
default:
99229922
return false;

0 commit comments

Comments
 (0)