mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 03:59:28 +02:00
+ Xtensa: make use of ADDI
git-svn-id: trunk@44349 -
This commit is contained in:
parent
2c689fa572
commit
46e8cb3e49
@ -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);
|
||||
|
@ -1,6 +1,7 @@
|
||||
(
|
||||
'none',
|
||||
'add',
|
||||
'addi',
|
||||
'and',
|
||||
'b',
|
||||
'bt',
|
||||
|
@ -1,6 +1,7 @@
|
||||
(
|
||||
A_NONE,
|
||||
A_ADD,
|
||||
A_ADDI,
|
||||
A_AND,
|
||||
A_Bcc,
|
||||
A_BT,
|
||||
|
Loading…
Reference in New Issue
Block a user