mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 23:19:29 +02:00
* improved AndUtxh2And optimization
git-svn-id: trunk@49483 -
This commit is contained in:
parent
be1461654f
commit
40e1a09e6c
@ -1361,10 +1361,10 @@ Implementation
|
||||
to
|
||||
and reg3,reg1,x
|
||||
}
|
||||
else if ((taicpu(p).oper[2]^.val and $ffffff00)=0) and
|
||||
MatchInstruction(p, A_AND, [C_None], [PF_None]) and
|
||||
else if MatchInstruction(p, A_AND, [C_None], [PF_None]) and
|
||||
GetNextInstructionUsingReg(p,hp1,taicpu(p).oper[0]^.reg) and
|
||||
MatchInstruction(hp1, [A_UXTB,A_UXTH], [C_None], [PF_None]) and
|
||||
((((taicpu(p).oper[2]^.val and $ffffff00)=0) and MatchInstruction(hp1, A_UXTB, [C_None], [PF_None])) or
|
||||
(((taicpu(p).oper[2]^.val and $ffff0000)=0) and MatchInstruction(hp1, A_UXTH, [C_None], [PF_None]))) and
|
||||
(taicpu(hp1).ops = 2) and
|
||||
RegEndofLife(taicpu(p).oper[0]^.reg,taicpu(hp1)) and
|
||||
MatchOperand(taicpu(hp1).oper[1]^, taicpu(p).oper[0]^.reg) and
|
||||
|
Loading…
Reference in New Issue
Block a user