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:
masta 2014-08-10 15:30:44 +00:00
parent 32f74d23f1
commit 96915b3f0c

View File

@ -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);