mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 18:42:57 +02:00
+ Xtensa: tcgcpu.maybeadjustresult
git-svn-id: trunk@44360 -
This commit is contained in:
parent
aa2907cffa
commit
819e2638bb
@ -773,8 +773,12 @@ implementation
|
||||
|
||||
|
||||
procedure tcgcpu.maybeadjustresult(list : TAsmList; op : TOpCg; size : tcgsize; dst : tregister);
|
||||
const
|
||||
overflowops = [OP_MUL,OP_SHL,OP_ADD,OP_SUB,OP_NEG];
|
||||
begin
|
||||
|
||||
if (op in overflowops) and
|
||||
(size in [OS_8,OS_S8,OS_16,OS_S16]) then
|
||||
a_load_reg_reg(list,OS_32,size,dst,dst);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user