+ Xtensa: make use of ADDI

git-svn-id: trunk@44349 -
This commit is contained in:
florian 2020-03-23 20:54:56 +00:00
parent 2c689fa572
commit 46e8cb3e49
3 changed files with 4 additions and 1 deletions

View File

@ -449,7 +449,8 @@ implementation
it saves us a register }
else if (op in [OP_MUL,OP_IMUL]) and ispowerof2(a,l1) then
a_op_const_reg_reg(list,OP_SHL,size,l1,src,dst)
else if (op=OP_ADD) and (a>=-128) and (a<=127) then
list.concat(taicpu.op_reg_reg_const(A_ADDI,dst,src,a))
else
begin
tmpreg:=getintregister(list,size);

View File

@ -1,6 +1,7 @@
(
'none',
'add',
'addi',
'and',
'b',
'bt',

View File

@ -1,6 +1,7 @@
(
A_NONE,
A_ADD,
A_ADDI,
A_AND,
A_Bcc,
A_BT,