Skip to content

Commit 0e9c8eb

Browse files
Claudiu Zissulescuartemiy-volkov
authored andcommitted
arc64: Allow signed 32bit immediates for 64bit arith insns
1 parent e6e3684 commit 0e9c8eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcc/config/arc64/arc64.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,8 @@ vfins, vfsub, vfmul, vfdiv, vfrep, vpack, xbfu, xor, xorl"
14361436
(match_operand:DI 2 "nonmemory_operand")))]
14371437
""
14381438
{
1439-
if (!register_operand (operands[2], DImode))
1439+
if (!register_operand (operands[2], DImode)
1440+
&& !satisfies_constraint_S32S0 (operands[2]))
14401441
operands[2] = force_reg (DImode, operands[2]);
14411442
})
14421443

0 commit comments

Comments
 (0)