From 51fdf43a5a53db624ff637d0aae05e2d47e59af2 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 3 Feb 2015 13:59:52 +0000 Subject: [PATCH] Fix thumb2 assembler's ShifterOperandCanHold. Change-Id: Ica3c5f39d52722950725ba622fc67bd7f634918a --- compiler/utils/arm/assembler_thumb2.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/compiler/utils/arm/assembler_thumb2.cc b/compiler/utils/arm/assembler_thumb2.cc index 0920a3f59..895cc26d1 100644 --- a/compiler/utils/arm/assembler_thumb2.cc +++ b/compiler/utils/arm/assembler_thumb2.cc @@ -37,13 +37,6 @@ bool Thumb2Assembler::ShifterOperandCanHold(Register rd, switch (opcode) { case ADD: case SUB: - if (rn == SP) { - if (rd == SP) { - return immediate < (1 << 9); // 9 bits allowed. - } else { - return immediate < (1 << 12); // 12 bits. - } - } if (immediate < (1 << 12)) { // Less than (or equal to) 12 bits can always be done. return true; } -- 2.11.0