Add instructions representing Intel's division instructions which use a numerator that is twice as wide as the denominator and produce both the quotient and remainder. Add encodings for the x86_[su]divmodx instructions.
16 lines
355 B
Python
16 lines
355 B
Python
"""
|
|
Intel definitions.
|
|
|
|
Commonly used definitions.
|
|
"""
|
|
from __future__ import absolute_import
|
|
from cdsl.isa import TargetISA, CPUMode
|
|
import base.instructions
|
|
from . import instructions as x86
|
|
|
|
ISA = TargetISA('intel', [base.instructions.GROUP, x86.GROUP])
|
|
|
|
# CPU modes for 32-bit and 64-bit operation.
|
|
I32 = CPUMode('I32', ISA)
|
|
I64 = CPUMode('I64', ISA)
|