tests: fix typo referencing X86 in test_systemz.c. bug reported by Ben Nagy

This commit is contained in:
Nguyen Anh Quynh 2014-04-10 16:42:06 +08:00
parent c2638ce57f
commit 7eff377630
1 changed files with 2 additions and 2 deletions

View File

@ -57,10 +57,10 @@ static void print_insn_detail(cs_insn *ins)
break; break;
case SYSZ_OP_MEM: case SYSZ_OP_MEM:
printf("\t\toperands[%u].type: MEM\n", i); printf("\t\toperands[%u].type: MEM\n", i);
if (op->mem.base != X86_REG_INVALID) if (op->mem.base != SYSZ_REG_INVALID)
printf("\t\t\toperands[%u].mem.base: REG = %s\n", printf("\t\t\toperands[%u].mem.base: REG = %s\n",
i, cs_reg_name(handle, op->mem.base)); i, cs_reg_name(handle, op->mem.base));
if (op->mem.index != X86_REG_INVALID) if (op->mem.index != SYSZ_REG_INVALID)
printf("\t\t\toperands[%u].mem.index: REG = %s\n", printf("\t\t\toperands[%u].mem.index: REG = %s\n",
i, cs_reg_name(handle, op->mem.index)); i, cs_reg_name(handle, op->mem.index));
if (op->mem.length != 0) if (op->mem.length != 0)