From 3ab665e55490522f9ec81fa69421fc0969f3287a Mon Sep 17 00:00:00 2001 From: masta Date: Mon, 13 Jan 2014 21:32:24 +0000 Subject: [PATCH] Try to split constant XORs into two shiftimms on ARM. git-svn-id: trunk@26448 - --- compiler/arm/cgcpu.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/arm/cgcpu.pas b/compiler/arm/cgcpu.pas index cbc80dfe9b..a47bb75f43 100644 --- a/compiler/arm/cgcpu.pas +++ b/compiler/arm/cgcpu.pas @@ -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