When decoding fails the insn bytes (at most 6) are shown. However,
"special insns" are 10 bytes with the last 2 bytes being the interesting
ones. Print them all.
vpanic("s390_decode_and_irgen");
}
- vex_printf("%02x%02x", bytes[0], bytes[1]);
- if (insn_length > 2) {
- vex_printf(" %02x%02x", bytes[2], bytes[3]);
- }
- if (insn_length > 4) {
- vex_printf(" %02x%02x", bytes[4], bytes[5]);
+ for (unsigned i = 0; i < insn_length; i += 2) {
+ if (i != 0)
+ vex_printf(" ");
+ vex_printf("%02x%02x", bytes[i], bytes[i + 1]);
}
vex_printf("\n");
}