Class: AArch64::Instructions::STLXP

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

Overview

STLXP – A64 Store-Release Exclusive Pair of registers STLXP <Ws>, <Wt1>, <Wt2>, [<Xn|SP>,,#0] STLXP <Ws>, <Xt1>, <Xt2>, [<Xn|SP>,,#0]

Instance Method Summary collapse

Constructor Details

#initialize(rs, rt, rt2, rn, sz) ⇒ STLXP

Returns a new instance of STLXP.



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

def initialize rs, rt, rt2, rn, sz
  @rs  = check_mask(rs, 0x1f)
  @rt  = check_mask(rt, 0x1f)
  @rt2 = check_mask(rt2, 0x1f)
  @rn  = check_mask(rn, 0x1f)
  @sz  = check_mask(sz, 0x01)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  STLXP(@sz, @rs, @rt2, @rn, @rt)
end