diff options
Diffstat (limited to 'vm/compiler/codegen/arm/ArchUtility.c')
-rw-r--r-- | vm/compiler/codegen/arm/ArchUtility.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vm/compiler/codegen/arm/ArchUtility.c b/vm/compiler/codegen/arm/ArchUtility.c index 7f6d28464..eeee00b4d 100644 --- a/vm/compiler/codegen/arm/ArchUtility.c +++ b/vm/compiler/codegen/arm/ArchUtility.c @@ -79,9 +79,13 @@ static void buildInsnString(char *fmt, ArmLIR *lir, char* buf, strcpy(tbuf, "!"); } else { assert(fmt < fmtEnd); - assert((unsigned)(nc-'0') < 3); + assert((unsigned)(nc-'0') < 4); operand = lir->operands[nc-'0']; switch(*fmt++) { + case 'n': + operand = ~expandImmediate(operand); + sprintf(tbuf,"%d [0x%x]", operand, operand); + break; case 'm': operand = expandImmediate(operand); sprintf(tbuf,"%d [0x%x]", operand, operand); |