Class: AArch64::Instructions::LDNP_gen

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

Overview

LDNP – A64 Load Pair of Registers, with non-temporal hint LDNP <Wt1>, <Wt2>, [<Xn|SP>#<imm>] LDNP <Xt1>, <Xt2>, [<Xn|SP>#<imm>]

Instance Method Summary collapse

Constructor Details

#initialize(rt1, rt2, rn, imm, opc) ⇒ LDNP_gen

Returns a new instance of LDNP_gen.



8
9
10
11
12
13
14
# File 'lib/aarch64/instructions/ldnp_gen.rb', line 8

def initialize rt1, rt2, rn, imm, opc
  @rt1 = check_mask(rt1, 0x1f)
  @rt2 = check_mask(rt2, 0x1f)
  @rn  = check_mask(rn, 0x1f)
  @imm = check_mask(imm, 0x7f)
  @opc = check_mask(opc, 0x03)
end

Instance Method Details

#encode(_) ⇒ Object



16
17
18
# File 'lib/aarch64/instructions/ldnp_gen.rb', line 16

def encode _
  LDNP_gen(@opc, @imm, @rt2, @rn, @rt1)
end