Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i#4567: Handle instructions with a single source operand that's an AV…
…X-512 mask register in AT&T style disassembly (#4568) The mask register is always the first source operand. i here is stale, the result of previous loop. The `instr_get_src` correctly uses a hardcoded zero. But instr_info_opnd_type reuses i and dies if the instruction has a single source operand (because i is always out of range). is_evex_mask_pending is not ever set for Intel style disassembly which is why this bug only affects AT&T syntax. drdisas -syntax att 62 f2 fe 48 28 c9 will trigger this bug. This is tested in the (currently ifdefed out) binutils AVX-512 tests. Also changes usage errors to actually show up (on this error the message is not visible) by printing to stderr and adding a trailing \n so they are not caught up in any output buffering glibc is doing. Fixes #4567
- Loading branch information