arm64: add NEGS & NGCS alias instructions. this fixes issue #752
diff --git a/arch/AArch64/AArch64Mapping.c b/arch/AArch64/AArch64Mapping.c
index 03d9eb4..47d9063 100644
--- a/arch/AArch64/AArch64Mapping.c
+++ b/arch/AArch64/AArch64Mapping.c
@@ -304,12 +304,6 @@
#include "AArch64MappingInsn.inc"
};
-// some alias instruction only need to be defined locally to satisfy
-// some lookup functions
-// just make sure these IDs never reuse any other IDs ARM_INS_*
-#define ARM64_INS_NEGS (unsigned short)-1
-#define ARM64_INS_NGCS (unsigned short)-2
-
// given internal insn id, return public instruction info
void AArch64_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
{
diff --git a/bindings/java/capstone/Arm64_const.java b/bindings/java/capstone/Arm64_const.java
index 893752d..f31c617 100644
--- a/bindings/java/capstone/Arm64_const.java
+++ b/bindings/java/capstone/Arm64_const.java
@@ -1029,7 +1029,9 @@
public static final int ARM64_INS_DC = 449;
public static final int ARM64_INS_AT = 450;
public static final int ARM64_INS_TLBI = 451;
- public static final int ARM64_INS_ENDING = 452;
+ public static final int ARM64_INS_NEGS = 452;
+ public static final int ARM64_INS_NGCS = 453;
+ public static final int ARM64_INS_ENDING = 454;
// Group of ARM64 instructions
diff --git a/bindings/ocaml/arm64_const.ml b/bindings/ocaml/arm64_const.ml
index da86514..cbfd081 100644
--- a/bindings/ocaml/arm64_const.ml
+++ b/bindings/ocaml/arm64_const.ml
@@ -1026,7 +1026,9 @@
let _ARM64_INS_DC = 449;;
let _ARM64_INS_AT = 450;;
let _ARM64_INS_TLBI = 451;;
-let _ARM64_INS_ENDING = 452;;
+let _ARM64_INS_NEGS = 452;;
+let _ARM64_INS_NGCS = 453;;
+let _ARM64_INS_ENDING = 454;;
(* Group of ARM64 instructions *)
diff --git a/bindings/python/capstone/arm64_const.py b/bindings/python/capstone/arm64_const.py
index 3fcea50..b23a34b 100644
--- a/bindings/python/capstone/arm64_const.py
+++ b/bindings/python/capstone/arm64_const.py
@@ -1026,7 +1026,9 @@
ARM64_INS_DC = 449
ARM64_INS_AT = 450
ARM64_INS_TLBI = 451
-ARM64_INS_ENDING = 452
+ARM64_INS_NEGS = 452
+ARM64_INS_NGCS = 453
+ARM64_INS_ENDING = 454
# Group of ARM64 instructions
diff --git a/include/capstone/arm64.h b/include/capstone/arm64.h
index 5811a6b..a93f04e 100644
--- a/include/capstone/arm64.h
+++ b/include/capstone/arm64.h
@@ -1129,6 +1129,9 @@
ARM64_INS_AT,
ARM64_INS_TLBI,
+ ARM64_INS_NEGS,
+ ARM64_INS_NGCS,
+
ARM64_INS_ENDING, // <-- mark the end of the list of insn
} arm64_insn;