Clipping operations using partial clip instructions
AssigneeArm Limited
InventorDominic Hugo Symes
Life of this patent
Estimating the term…
Abstract
Methods and apparatus for performing a clipping operation comprised of a plurality of partial clip instructions based on a portion of a clip value. Wherein the partial clip instructions comprise decoding (120) a partial clip instruction using instruction decoding circuitry, and obtaining (110) at least a portion of input data associated with a register having a register size. In response to the decoded instruction the portion of the input data is clipped (130) based on the portion of the clip value; and a flag is set (140) indicating whether further clipping is required. The flag is set when an upper value of the portion of input data is equal to or exceeds the portion of the clip value.
Claims20
A method of performing a partial clip instruction with a portion of a clip value, the method comprising:
- decoding the partial clip instruction using instruction decoding circuitry;
- obtaining at least a portion of input data, the portion of input data being associated with a register having a register size;
- and
- in response to the decoded instruction:
- clipping the portion of the input data based on the portion of the clip value;
- and
- setting a flag indicating further clipping is required when an upper value of the portion of input data is equal to or exceeds the portion of the clip value.
An apparatus for performing a partial clip instruction with a portion of a clip value, the apparatus comprising:
- instruction decoding circuitry to decode the partial clip instruction;
- input circuitry to obtain at least a portion of input data, the portion of input data being associated with a register having a register size;
- and
- processing circuitry to perform data processing on the portion of the input data in response to the partial clip instruction decoded by the instruction decoding circuitry, wherein the processing circuitry is configured to operate on the portion of the input data, the programming circuitry is to:
- clip the portion of the input data based on the portion of the clip value;
- and
- set a flag indicating further clipping is required when an upper value of the portion of the input data is equal to or exceeds the portion of the clip value.
A non-transitory computer-readable storage medium comprising a set of computer-readable instructions stored thereon, which when executed by at least one processor causes the at last one processor to control a host data processing operation to provide an instruction execution environment for executing instructions of target code, the computer program comprising:
- decoding the clip instruction using instruction decoding circuitry;
- obtaining at least a portion of input data, the portion of input data being associated with a register having a register size;
- and
- in response to the decoded instruction:
- clipping the portion of the input data based on the portion of the clip value;
- and
- setting a flag indicating further clipping is required when an upper value of the portion of input data is equal to or exceeds the portion of the clip value.
A computer program for controlling host data processing apparatus to provide an instruction execution environment comprising:
- instruction decoding circuitry to decode the partial clip instruction;
- input circuitry to obtain at least a portion of input data, the portion of input data being associated with a register having a register size;
- and
- processing circuitry to perform data processing on the portion of the input data in response to the partial clip instruction decoded by the instruction decoding circuitry, wherein the processing circuitry is configured to operate on the portion of the input data, the programming circuitry is to:
- clip the portion of the input data based on the portion of the clip value;
- and
- set a flag indicating further clipping is required when an upper value of the portion of the input data is equal to or exceeds the portion of the clip value.
Dependencies are inferred from the claim text.