摘要 |
<p>A method for executing a graphics add saturating arithmetic instruction in a data processing system (20), having a graphics execution unit, is provided. An instruction sequencer (22) transfers graphics instructions to the graphics execution unit (30). When the sequencer (22) issues a graphics add saturating arithmetic instruction, a selected number of data operands are transferred from a general register file (34) to the graphics execution unit (30), via a communications bus(38). One of the selected data operands comprise one or more fixed point values. The graphics execution unit (30) adds each of the one or more fixed point values to generate an intermediate result. When the graphics execution unit (30) detects that the addition caused an overflow/underflow condition to occur, a saturation value is substituted for the intermediate which caused the overflow/underflow condition, thereby forming a result operand. The result operand is transferred to the general register file (34). <IMAGE></p> |