Skip to content

Commit

Permalink
bhi and ldrsw for arm64.pseudo ##decompiler
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Jun 11, 2024
1 parent ae28db0 commit 3777601
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libr/arch/p/arm/pseudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ static int replace(int argc, const char *argv[], char *newstr) {
{ 0, "bxeq", "je #", { 1 } },
{ 0, "b.eq", "if (eq) goto #", { 1 } },
{ 0, "b.ne", "if (eq) goto #", { 1 } },
{ 0, "b.hi", "goto ifgt #", { 1 } },
{ 0, "b.lo", "goto iflt #", { 1 } },
{ 0, "cmf", "if (# == #)", { 1, 2 } },
{ 0, "cmn", "if (# != #)", { 1, 2 } },
{ 0, "cmp", "if (# == #)", { 1, 2 } },
Expand All @@ -76,6 +78,7 @@ static int replace(int argc, const char *argv[], char *newstr) {
{ 2, "ldrsb", "# = (byte) #", { 1, 2 } },
{ 2, "ldr.w", "# = #", { 1, 2 } },
{ 2, "ldrsw", "# = #", { 1, 2 } },
{ 4, "ldrsw", "# = # + # #", { 1, 2, 3, 4 } },
{ 3, "ldr", "# = # + #", { 1, 2, 3 } },
{ 3, "ldrb", "# = (byte) # + #", { 1, 2, 3 } },
{ 3, "ldrsb", "# = (byte) # + #", { 1, 2, 3 } },
Expand Down

0 comments on commit 3777601

Please sign in to comment.