reprospect.test.sass.matchers.add_int32 module
- class reprospect.test.sass.matchers.add_int32.AddInt32Matcher(*, arch: NVIDIAArch, dst: str = 'R[0-9]+', src_a: str = 'R[0-9]+', src_b: str = 'R[0-9]+', swap: bool = False)View on GitHub
Bases:
InstructionMatcherMatch the addition of two 32-bit integers.
It can be achieved using one of the following instructions:
IADD <dst>, <src_a>, <src_b> IADD3 <dst>, <src_a>, <src_b>, RZ IMAD.IADD <dst>, <src_a>, 0x1, <src_b>
Note
It is not decorated with
dataclasses.dataclass()because of https://github.com/mypyc/mypyc/issues/1061.- __init__(*, arch: NVIDIAArch, dst: str = 'R[0-9]+', src_a: str = 'R[0-9]+', src_b: str = 'R[0-9]+', swap: bool = False) NoneView on GitHub
- Parameters:
swap – If
True, allow sources to be swapped.
- match(inst: Instruction | str) InstructionMatch | NoneView on GitHub
- matchers: Final[list[OpcodeModsWithOperandsMatcher]]