Class: AArch64::Instructions::STZG

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

Overview

STZG – A64 Store Allocation Tag, Zeroing STZG <Xt|SP>, [<Xn|SP>], #<simm> STZG <Xt|SP>, [<Xn|SP>, #<simm>]! STZG <Xt|SP>, [<Xn|SP>#<simm>]

Instance Method Summary collapse

Constructor Details

#initialize(xt, xn, imm9, opt) ⇒ STZG

Returns a new instance of STZG.



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

def initialize xt, xn, imm9, opt
  @xt   = check_mask(xt, 0x1f)
  @xn   = check_mask(xn, 0x1f)
  @imm9 = check_mask(imm9, 0x1ff)
  @opt  = check_mask(opt, 0x03)
end

Instance Method Details

#encode(_) ⇒ Object



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

def encode _
  STZG(@imm9, @opt, @xn, @xt)
end