mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 13:59:29 +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
|
||||
(tordconstnode(right).value=0) and
|
||||
((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
|
||||
begin
|
||||
location_reset(location,LOC_FLAGS,OS_NO);
|
||||
|
Loading…
Reference in New Issue
Block a user