Class: AArch64::Instructions::MADD
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::MADD
- Defined in:
- lib/aarch64/instructions/madd.rb
Overview
MADD – A64 Multiply-Add MADD <Wd>, <Wn>, <Wm>, <Wa> MADD <Xd>, <Xn>, <Xm>, <Xa>
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(rd, rn, rm, ra, sf) ⇒ MADD
constructor
A new instance of MADD.
Constructor Details
#initialize(rd, rn, rm, ra, sf) ⇒ MADD
Returns a new instance of MADD.
8 9 10 11 12 13 14 |
# File 'lib/aarch64/instructions/madd.rb', line 8 def initialize rd, rn, rm, ra, sf @rd = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @ra = check_mask(ra, 0x1f) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/madd.rb', line 16 def encode _ MADD(@sf, @rm, @ra, @rn, @rd) end |