Class: AArch64::Instructions::STNP_gen

Inherits:
Object
  • Object
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   = rt
  @rt2  = rt2
  @rn   = rn
  @imm7 = imm7
  @opc  = opc
end

Instance Method Details

#encodeObject



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

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