mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00
Implement protected
This commit is contained in:
parent
3b38fe0280
commit
9fa127416a
Notes:
git
2023-03-06 07:29:41 +00:00
4 changed files with 37 additions and 6 deletions
|
@ -828,6 +828,15 @@ module RubyVM::MJIT
|
|||
opcode: 0x85,
|
||||
mod_rm: ModRM[mod: Mod11, reg: right_reg, rm: left_reg],
|
||||
)
|
||||
# TEST r/m64, r64 (Mod 11: reg)
|
||||
in [Symbol => left_reg, Symbol => right_reg] if r64?(left_reg) && r64?(right_reg)
|
||||
# REX.W + 85 /r
|
||||
# MR: Operand 1: ModRM:r/m (r), Operand 2: ModRM:reg (r)
|
||||
insn(
|
||||
prefix: REX_W,
|
||||
opcode: 0x85,
|
||||
mod_rm: ModRM[mod: Mod11, reg: right_reg, rm: left_reg],
|
||||
)
|
||||
else
|
||||
raise NotImplementedError, "test: not-implemented operands: #{left.inspect}, #{right.inspect}"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue