Bit check processors, methods, systems, and instructions to check a bit with an indicated check bit value
AssigneeIntel Corporation
InventorsHugh Wilkinson, William R. Wheeler, Debra Bernstein
Life of this patent
Estimating the term…
Abstract
A processor of an aspect includes a register to store a condition code bit, and a decode unit to decode a bit check instruction. The bit check instruction is to indicate a first source operand that is to include a first bit, and is to indicate a check bit value for the first bit. The processor also includes an execution unit coupled with the decode unit. The execution unit, in response to the bit check instruction, is to compare the first bit with the check bit value, and update a condition code bit to indicate whether the first bit equals or does not equal the check bit value. Other processors, methods, systems, and instructions are disclosed.
Claims24
A processor comprising:
- a register to store a condition code bit;
- a decode unit to decode a bit check instruction, the bit check instruction to indicate a first source operand that is to include a first bit, and to indicate a check bit value for the first bit, wherein the check bit value is to be one selected from a group consisting of implicit to the bit check instruction, specified by a field of the bit check instruction, and specified by an operand of the bit check instruction;
- and
- an execution unit coupled with the decode unit, the execution unit, in response to the bit check instruction, to:
- compare the first bit with the check bit value;
- and
- update the condition code bit to indicate whether the first bit equals or does not equal the check bit value.
A method performed by a processor comprising:
- decoding a bit check instruction of an instruction set of the processor with an on-die decode unit of the processor, the bit check instruction indicating a first source operand that includes a first bit, and indicating a check bit value for the first bit, wherein the check bit value is one selected from a group consisting of implicit to the bit check instruction, specified by a field of the bit check instruction, and specified by an operand of the bit check instruction, wherein the first source operand is a memory address operand having a plurality of least significant bits that are used to determine a memory address and a plurality of most significant bits available for use for one or more other purposes besides memory address determination, and wherein the first bit is one of the most significant bits;
- comparing, with an on-die execution unit of the processor, the first bit with the check bit value in response to the bit check instruction;
- and
- updating a condition code bit to indicate whether the first bit equals or does not equal the check bit value in response to the bit check instruction, wherein the first bit is a mark bit used in garbage collection.
A system to process instructions comprising:
- an interconnect;
- a processor coupled with the interconnect, the processor to receive a bit check instruction that is to indicate a first source operand that is to include a first bit, and is to indicate a check bit value for the first bit, wherein the check bit value is one selected from a group consisting of implicit to the bit check instruction, specified by a field of the bit check instruction, and specified by an operand of the bit check instruction, the processor, in response to the bit check instruction, to compare the first bit with the check bit value, and cause a condition code bit to have a first value if the first bit equals the check bit value or a second, different value than the first value if the first bit does not equal the check bit value;
- and
- a dynamic random access memory (DRAM) coupled with the interconnect.
An article of manufacture comprising a non-transitory machine-readable storage medium, the non-transitory machine-readable storage medium storing a plurality of instructions including a bit check instruction, the bit check instruction, if executed by a machine, is to cause the machine to perform operations comprising:
- access a first source operand, which is to be indicated by the bit check instruction, the first source operand to include a first bit;
- access a check bit value for the first bit, which is to be indicated by the bit check instruction, wherein the check bit value is one selected from a group consisting of implicit to the bit check instruction, specified by a field of the bit check instruction, and specified by an operand of the bit check instruction, wherein the first source operand is to be a memory address operand that is to have a plurality of least significant bits that are to be used to determine a memory address and a plurality of most significant bits that are to be available for use for one or more other purposes besides memory address determination, and wherein the first bit is to be one of the most significant bits;
- compare the first bit with the check bit value in response to the bit check instruction;
- update a condition code bit to indicate whether the first bit equals or does not equal the check bit value in response to the bit check instruction;
- and
- controlling exception processing in garbage collection based on the condition code bit, wherein the first bit is a mark bit used in garbage collection.
Dependencies are inferred from the claim text.