Class: AArch64::Instructions::CSINV
- Inherits:
-
Instruction
- Object
- Instruction
- AArch64::Instructions::CSINV
- 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
- #encode(_) ⇒ Object
-
#initialize(rd, rn, rm, cond, sf) ⇒ CSINV
constructor
A new instance of CSINV.
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 = check_mask(rd, 0x1f) @rn = check_mask(rn, 0x1f) @rm = check_mask(rm, 0x1f) @cond = check_mask(cond, 0x0f) @sf = check_mask(sf, 0x01) end |
Instance Method Details
#encode(_) ⇒ Object
16 17 18 |
# File 'lib/aarch64/instructions/csinv.rb', line 16 def encode _ CSINV(@sf, @rm, @cond, @rn, @rd) end |