mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-27 12:10:09 +02:00
* arm thumb: handle constants in second_cmpsmallset correctly
git-svn-id: trunk@24432 -
This commit is contained in:
parent
c087d97b96
commit
ed2825fbb0
@ -343,7 +343,8 @@ interface
|
||||
|
||||
(* Try to keep right as a constant *)
|
||||
if (right.location.loc <> LOC_CONSTANT) or
|
||||
not(is_shifter_const(right.location.value, b)) then
|
||||
not(is_shifter_const(right.location.value, b)) or
|
||||
((current_settings.cputype in cpu_thumb) and not(is_thumb_imm(right.location.value))) then
|
||||
hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,right.resultdef,right.resultdef,true);
|
||||
hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user