summaryrefslogtreecommitdiff
path: root/compiler/utils/arm/assembler_thumb2.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2015-02-03 14:26:59 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-02-03 14:26:59 +0000
commit0b87c47033081d4b86e6611d947d49926df6b577 (patch)
tree329a9447340e85cffccb661667b53325a3a9eec8 /compiler/utils/arm/assembler_thumb2.cc
parent08029544d72bd9bec162956978afcb59204ea97b (diff)
parent51fdf43a5a53db624ff637d0aae05e2d47e59af2 (diff)
Merge "Fix thumb2 assembler's ShifterOperandCanHold."
Diffstat (limited to 'compiler/utils/arm/assembler_thumb2.cc')
-rw-r--r--compiler/utils/arm/assembler_thumb2.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/utils/arm/assembler_thumb2.cc b/compiler/utils/arm/assembler_thumb2.cc
index 0920a3f59f..895cc26d1d 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;
}