mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 13:59:07 +02:00
16bit Thumb is not able to use tst with an immediate value
r28315 introduced an arm optimization which requires tst rX, #imm to work. This is not available on 16bit thumb, I've disabled that optimization on thumb for now. git-svn-id: trunk@28360 -
This commit is contained in:
parent
32f74d23f1
commit
96915b3f0c
@ -416,7 +416,7 @@ interface
|
|||||||
if (right.nodetype=ordconstn) and
|
if (right.nodetype=ordconstn) and
|
||||||
(tordconstnode(right).value=0) and
|
(tordconstnode(right).value=0) and
|
||||||
((nodetype in [equaln,unequaln]) or
|
((nodetype in [equaln,unequaln]) or
|
||||||
(is_signed(left.resultdef) and (nodetype = lt_zero_swapped[nf_swapped in Flags]))
|
(not(GenerateThumbCode) and is_signed(left.resultdef) and (nodetype = lt_zero_swapped[nf_swapped in Flags]))
|
||||||
) then
|
) then
|
||||||
begin
|
begin
|
||||||
location_reset(location,LOC_FLAGS,OS_NO);
|
location_reset(location,LOC_FLAGS,OS_NO);
|
||||||
|
Loading…
Reference in New Issue
Block a user