Class: AArch64::Instructions::IRG

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

Overview

IRG – A64 Insert Random Tag IRG <Xd|SP>, <Xn|SP><Xm>

Instance Method Summary collapse

Constructor Details

#initialize(rd, rn, rm) ⇒ IRG

Returns a new instance of IRG.



7
8
9
10
11
# File 'lib/aarch64/instructions/irg.rb', line 7

def initialize rd, rn, rm
  @rd = check_mask(rd, 0x1f)
  @rn = check_mask(rn, 0x1f)
  @rm = check_mask(rm, 0x1f)
end

Instance Method Details

#encode(_) ⇒ Object



13
14
15
# File 'lib/aarch64/instructions/irg.rb', line 13

def encode _
  IRG(@rm, @rn, @rd)
end