Skip to content

Commit

Permalink
Implement madd/msub/mneg support for arm64.pseudo ##disasm
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Jun 11, 2024
1 parent 2f4944f commit d147060
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libr/arch/p/arm/pseudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ static int replace(int argc, const char *argv[], char *newstr) {
{ 3, "add", "# = # + #", { 1, 2, 3 } },
{ 2, "add", "# += #", { 1, 2 } },
{ 2, "adds", "# += #", { 1, 2 } },
{ 4, "madd", "# = (# * #) + #", { 1, 2, 3, 4 } },
{ 4, "msub", "# = (# * #) - #", { 1, 2, 3, 4 } },
{ 3, "mneg ", "# = -(# * #)", { 1, 2, 3 } },
{ 3, "adds", "# = # + #", { 1, 2, 3 } },
{ 3, "addw", "# = # + #", { 1, 2, 3 } },
{ 3, "add.w", "# = # + #", { 1, 2, 3 } },
Expand Down Expand Up @@ -85,7 +88,7 @@ static int replace(int argc, const char *argv[], char *newstr) {
// { 4, "movk", "# = # # #", { 1, 2, 3, 4 } },
{ 3, "movk", "# = # #", { 1, 2, 3 } },
{ 0, "movn", "# = ~#", { 1, 2 } },
{ 0, "neg", "# = !#", { 1, 2 } },
{ 0, "neg", "# = -#", { 1, 2 } },
{ 0, "sxtw", "# = #", { 1, 2 } },
{ 0, "stur", "# # = #", { 2, 3, 1 } },
{ 4, "stp", "# + # = (#, 2)", { 3, 4, 1 } },
Expand Down

0 comments on commit d147060

Please sign in to comment.