Try to split constant XORs into two shiftimms on ARM.

git-svn-id: trunk@26448 -
This commit is contained in:
masta 2014-01-13 21:32:24 +00:00
parent aec73bce68
commit 3ab665e554

View File

@ -1020,7 +1020,7 @@ unit cgcpu;
list.concat(taicpu.op_reg_reg_const(A_BIC,dst,src,imm1));
list.concat(taicpu.op_reg_reg_const(A_BIC,dst,dst,imm2));
end
else if (op in [OP_ADD, OP_SUB, OP_OR]) and
else if (op in [OP_ADD, OP_SUB, OP_OR, OP_XOR]) and
not(cgsetflags or setflags) and
split_into_shifter_const(a, imm1, imm2) then
begin