Class: AArch64::Instructions::CSINV

Inherits:
Object
  • Object
show all
Defined in:
lib/aarch64/instructions/csinv.rb

Overview

CSINV – A64 Conditional Select Invert CSINV <Wd>, <Wn>, <Wm>, <cond> CSINV <Xd>, <Xn>, <Xm>, <cond>

Instance Method Summary collapse

Constructor Details

#initialize(rd, rn, rm, cond, sf) ⇒ CSINV

Returns a new instance of CSINV.



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

def initialize rd, rn, rm, cond, sf
  @rd   = rd
  @rn   = rn
  @rm   = rm
  @cond = cond
  @sf   = sf
end

Instance Method Details

#encodeObject



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

def encode
  CSINV(@sf, @rm.to_i, @cond, @rn.to_i, @rd.to_i)
end