Skip to content

Commit

Permalink
[ARM64_DYNAREC][TRACE] Added printer for CNT opcode
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Dec 28, 2024
1 parent cace5f0 commit 1c4f1cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/dynarec/arm64/arm64_printer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,15 @@ const char* arm64_print(uint32_t opcode, uintptr_t addr)
return buff;
}

// CNT
if(isMask(opcode, "0Q00111000100000010110nnnnnddddd", &a)) {
const char* Y[] = {"8B", "16B"};
const char* Vd = Y[a.Q];
const char* Va = Y[a.Q];
snprintf(buff, sizeof(buff), "CNT V%d.%s, V%d.%s", Rd, Vd, Rn, Va);
return buff;
}

// DUP
if(isMask(opcode, "0Q001110000iiiii000001nnnnnddddd", &a)) {
const char* Y[] = {"8B", "16B", "4H", "8H", "2S", "4S", "??", "2D"};
Expand Down

0 comments on commit 1c4f1cb

Please sign in to comment.