-
-
Notifications
You must be signed in to change notification settings - Fork 472
Open
Labels
A-decoderArea: DecoderArea: Decoder
Description
Reproduced with this disasm-sqrtss.c:
#include <assert.h>
#include <stdio.h>
#include <Zydis/Zydis.h>
int main(void)
{
const ZyanU8 data[] = {0xF3, 0x0F, 0x51, 0xCA};
ZydisDisassembledInstruction instruction;
assert(ZYAN_SUCCESS(ZydisDisassembleIntel(ZYDIS_MACHINE_MODE_LONG_64,
0,
data,
sizeof(data),
&instruction)));
printf("%s\n", instruction.text);
printf("first operand action read: %d\n",
instruction.operands[0].actions & ZYDIS_OPERAND_ACTION_READ);
return 0;
}$ gcc -lZydis disasm-sqrtss.c
$ ./a.out
sqrtss xmm1, xmm2
first operand action read: 1From the x86 manual, vol. 2B 4-665 (page 1891), xmm1 should be write-only.
ZehMatt
Metadata
Metadata
Assignees
Labels
A-decoderArea: DecoderArea: Decoder