XINST_CREATE_add leaves the scale as 0 even when an index register is present, which does not encode. We fix that here, along with fixing the same bug in XINST_CREATE_add_2src.
A test case is added.
Fixes #4861 (closed)
XINST_CREATE_add leaves the scale as 0 even when an index register is present, which does not encode. We fix that here, along with fixing the same bug in XINST_CREATE_add_2src.
A test case is added.
Fixes #4861 (closed)