Fix x86_64 instruction formatting for >2 operands #1459
Labels
bug
instructionAPI
This issue is directly related to instructionAPI
x86_64
Related to x86 family of ISAs
Formatting an x86_64 instruction with three or more operands has the operands in the wrong order. Dyninst stores the operands in intel syntax order, but wants to formats them in AT&T syntax order. Essentially the formatter rotates the operands right one instead of reversing the list. If the intel order was
A, B, C
, the AT&T syntax should beC, B, A
, but it currently outputs asC, A, B
. One and two operand instructions format correctly as rotating and reversing produce the same result.The text was updated successfully, but these errors were encountered: