From 680b1bdd7e5d112ba4b95d6c81a43b65119b3b9c Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 7 Mar 2012 20:18:49 -0800 Subject: Unify branch flags, pretty printer for OpKind. LIR operand 0 is always an offset for a branch. This is clear in conditional branches that are binary and have the 2nd operand as the condition codes of the branch. This changes unconditional branches to be unary and therefore more intention revealing that the 1st operand will be used by the assembler to hold an offset. A << operator for OpKind allows easy pretty printing. Change-Id: I933b8e0bf43f5be3eff13f93c3fc1539ae526840 --- src/compiler/codegen/arm/Assemble.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/codegen/arm/Assemble.cc') diff --git a/src/compiler/codegen/arm/Assemble.cc b/src/compiler/codegen/arm/Assemble.cc index 2c13107ce7..2a89b6aca7 100644 --- a/src/compiler/codegen/arm/Assemble.cc +++ b/src/compiler/codegen/arm/Assemble.cc @@ -147,7 +147,7 @@ const ArmEncodingMap EncodingMap[kArmLast] = { NEEDS_FIXUP, "b!1c", "!0t", 2), ENCODING_MAP(kThumbBUncond, 0xe000, kFmtBitBlt, 10, 0, kFmtUnused, -1, -1, kFmtUnused, -1, -1, - kFmtUnused, -1, -1, NO_OPERAND | IS_BRANCH | NEEDS_FIXUP, + kFmtUnused, -1, -1, IS_UNARY_OP | IS_BRANCH | NEEDS_FIXUP, "b", "!0t", 2), ENCODING_MAP(kThumbBicRR, 0x4380, kFmtBitBlt, 2, 0, kFmtBitBlt, 5, 3, kFmtUnused, -1, -1, -- cgit v1.2.3-59-g8ed1b