Class: AArch64::Instructions::STGP
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::STGP
- Defined in:
- lib/aarch64/instructions/stgp.rb
Overview
STGP – A64 Store Allocation Tag and Pair of registers STGP <Xt1>, <Xt2>, [<Xn|SP>], #<imm> STGP <Xt1>, <Xt2>, [<Xn|SP>, #<imm>]! STGP <Xt1>, <Xt2>, [<Xn|SP>#<imm>]
Instance Method Summary collapse
- #encode(_) ⇒ Object
-
#initialize(xt, xt2, xn, simm7, option) ⇒ STGP
constructor
A new instance of STGP.
Constructor Details
#initialize(xt, xt2, xn, simm7, option) ⇒ STGP
Returns a new instance of STGP.
9 10 11 12 13 14 15 |
# File 'lib/aarch64/instructions/stgp.rb', line 9 def initialize xt, xt2, xn, simm7, option @xt = check_mask(xt, 0x1f) @xt2 = check_mask(xt2, 0x1f) @xn = check_mask(xn, 0x1f) @simm7 = check_mask(simm7, 0x7f) @option = check_mask(option, 0x03) end |
Instance Method Details
#encode(_) ⇒ Object
17 18 19 |
# File 'lib/aarch64/instructions/stgp.rb', line 17 def encode _ STGP(@option, @simm7, @xt2, @xn, @xt) end |