org.jikesrvm.ia32
Enum RegisterConstants.MM
java.lang.Object
java.lang.Enum<RegisterConstants.MM>
org.jikesrvm.ia32.RegisterConstants.MM
- All Implemented Interfaces:
- Serializable, Comparable<RegisterConstants.MM>, RegisterConstants.MachineRegister
- Enclosing interface:
- RegisterConstants
public static enum RegisterConstants.MM
- extends Enum<RegisterConstants.MM>
- implements RegisterConstants.MachineRegister
Representation of MMX MM registers
N.B. MM and x87 FPR registers alias
MM0
public static final RegisterConstants.MM MM0
MM1
public static final RegisterConstants.MM MM1
MM2
public static final RegisterConstants.MM MM2
MM3
public static final RegisterConstants.MM MM3
MM4
public static final RegisterConstants.MM MM4
MM5
public static final RegisterConstants.MM MM5
MM6
public static final RegisterConstants.MM MM6
MM7
public static final RegisterConstants.MM MM7
MM8
public static final RegisterConstants.MM MM8
MM9
public static final RegisterConstants.MM MM9
MM10
public static final RegisterConstants.MM MM10
MM11
public static final RegisterConstants.MM MM11
MM12
public static final RegisterConstants.MM MM12
MM13
public static final RegisterConstants.MM MM13
MM14
public static final RegisterConstants.MM MM14
MM15
public static final RegisterConstants.MM MM15
vals
private static final RegisterConstants.MM[] vals
- Local copy of the backing array. Copied here to avoid calls to clone
values
public static RegisterConstants.MM[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (RegisterConstants.MM c : RegisterConstants.MM.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static RegisterConstants.MM valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
value
public byte value()
- Specified by:
value
in interface RegisterConstants.MachineRegister
- Returns:
- encoded value of this register
needsREXprefix
public boolean needsREXprefix()
- Specified by:
needsREXprefix
in interface RegisterConstants.MachineRegister
- Returns:
- does this register require a REX prefix byte?
lookup
public static RegisterConstants.MM lookup(int num)
- Convert encoded value into the MM it represents
- Parameters:
num
- encoded value
- Returns:
- represented MM