Class: AArch64::Instructions::STNP_gen

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(rt, rt2, rn, imm7, opc) ⇒ STNP_gen

Returns a new instance of STNP_gen.



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

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

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  STNP_gen(@opc, @imm7, @rt2, @rn, @rt)
end