about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-28 14:33:10 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-28 14:33:10 +0100
commit1c4f1cb8c2925a3d240b05618aa659dd8a4e3ec5 (patch)
tree4394c8f1450d16224c8d1d903782fb101921b8c9 /src
parentcace5f0ccbebc86614ca4bf43d8307a57f37fd41 (diff)
downloadbox64-1c4f1cb8c2925a3d240b05618aa659dd8a4e3ec5.tar.gz
box64-1c4f1cb8c2925a3d240b05618aa659dd8a4e3ec5.zip
[ARM64_DYNAREC][TRACE] Added printer for CNT opcode
Diffstat (limited to 'src')
-rw-r--r--src/dynarec/arm64/arm64_printer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dynarec/arm64/arm64_printer.c b/src/dynarec/arm64/arm64_printer.c
index 05bc35e7..fbb0b527 100644
--- a/src/dynarec/arm64/arm64_printer.c
+++ b/src/dynarec/arm64/arm64_printer.c
@@ -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"};