mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:29:24 +02:00
+ Xtensa: make use of slli and srli
git-svn-id: trunk@44357 -
This commit is contained in:
parent
222cad35a9
commit
470cc8eb1c
@ -469,6 +469,10 @@ implementation
|
||||
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 if (op=OP_SHL) and (a>=1) and (a<=31) then
|
||||
list.concat(taicpu.op_reg_reg_const(A_SLLI,dst,src,a))
|
||||
else if (op=OP_SHR) and (a>=0) and (a<=15) then
|
||||
list.concat(taicpu.op_reg_reg_const(A_SRLI,dst,src,a))
|
||||
else
|
||||
begin
|
||||
tmpreg:=getintregister(list,size);
|
||||
|
@ -36,8 +36,10 @@
|
||||
's32i',
|
||||
'sext',
|
||||
'sll',
|
||||
'slli',
|
||||
'sra',
|
||||
'srl',
|
||||
'srli',
|
||||
'ssi',
|
||||
'ssl',
|
||||
'ssr',
|
||||
|
@ -36,8 +36,10 @@ A_S16I,
|
||||
A_S32I,
|
||||
A_SEXT,
|
||||
A_SLL,
|
||||
A_SLLI,
|
||||
A_SRA,
|
||||
A_SRL,
|
||||
A_SRLI,
|
||||
A_SSI,
|
||||
A_SSL,
|
||||
A_SSR,
|
||||
|
Loading…
Reference in New Issue
Block a user