Class: AArch64::Instructions::SMADDL

Inherits:
Instruction show all
Defined in:
lib/aarch64/instructions/smaddl.rb

Overview

SMADDL – A64 Signed Multiply-Add Long SMADDL <Xd>, <Wn>, <Wm>, <Xa>

Instance Method Summary collapse

Constructor Details

#initialize(rd, rn, rm, ra) ⇒ SMADDL

Returns a new instance of SMADDL.



7
8
9
10
11
12
# File 'lib/aarch64/instructions/smaddl.rb', line 7

def initialize rd, rn, rm, ra
  @rd = check_mask(rd, 0x1f)
  @rn = check_mask(rn, 0x1f)
  @rm = check_mask(rm, 0x1f)
  @ra = check_mask(ra, 0x1f)
end

Instance Method Details

#encode(_) ⇒ Object



14
15
16
# File 'lib/aarch64/instructions/smaddl.rb', line 14

def encode _
  SMADDL(@rm, @ra, @rn, @rd)
end