Skip to content

Commit

Permalink
Implement madd instruction for arm64 (#316)
Browse files Browse the repository at this point in the history
Co-authored-by: pancake <[email protected]>
  • Loading branch information
trufae and radare authored Jun 12, 2024
1 parent f28c6ae commit 3041b24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/libdec/arch/arm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,13 @@ var _arm = {
fmov: function(instr, context) {
return Base.assign(instr.parsed.opd[0], instr.parsed.opd[1]);
},
madd: function(instr) {
var vararg = Variable.uniqueName();
return Base.composed([
Base.multiply(vararg, instr.parsed.opd[1], instr.parsed.opd[2]),
Base.add(instr.parsed.opd[0], vararg, instr.parsed.opd[3])
]);
},
mul: function(instr) {
return _common_math(instr.parsed, Base.multiply);
},
Expand Down

0 comments on commit 3041b24

Please sign in to comment.