Enable compiler_test on host.
Change-Id: I67a745ba78567af6c967cc44cd9c9640ef5ba398
diff --git a/src/compiler/codegen/x86/ArchUtility.cc b/src/compiler/codegen/x86/ArchUtility.cc
index 9830e13..a5987f2 100644
--- a/src/compiler/codegen/x86/ArchUtility.cc
+++ b/src/compiler/codegen/x86/ArchUtility.cc
@@ -72,6 +72,10 @@
DCHECK_LT(i, fmt_len);
int operand = lir->operands[operand_number];
switch(fmt[i]) {
+ case 'c':
+ DCHECK_LT(static_cast<size_t>(operand), sizeof(x86CondName));
+ buf += x86CondName[operand];
+ break;
case 'd':
buf += StringPrintf("%d", operand);
break;
@@ -84,9 +88,10 @@
buf += x86RegName[operand];
}
break;
- case 'c':
- DCHECK_LT(static_cast<size_t>(operand), sizeof(x86CondName));
- buf += x86CondName[operand];
+ case 't':
+ buf += StringPrintf("0x%08x (L%p)",
+ (intptr_t)baseAddr + lir->offset + operand,
+ lir->target);
break;
default:
buf += StringPrintf("DecodeError '%c'", fmt[i]);