Using a shuffle unit to implement shift operations in a processor
Abstract
A method and mechanism for performing shift operations using a shuffle unit. A processor includes a shuffle unit configured to perform shuffle operations responsive to shuffle instructions. The shuffle unit is adapted to support shift operations as well. In response to determining a shuffle instruction is received, selected bits of an immediate value of the shuffle instruction are used to generate byte selects for relocating bytes of a source operand. In response to determining the instruction is a shift instruction, the shuffle unit performs an arithmetic operation on a first and second value, where the first value corresponds to a particular destination byte position, and the second value corresponds to the immediate value. The result of the arithmetic operation comprises a byte select which selects one of the bytes of a source operand for conveyance to the particular destination byte position. In the event a destination byte position should be cleared by the shift operation, the output for the particular destination byte position is forced to zero.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 7 · Forward citations: 33.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: receiving an instruction comprising an opcode, a source operand identifier, and an immediate value; determining whether the instruction corresponds to a shuffle instruction or a shift instruction; in response to determining the instruction corresponds to a shuffle instruction: using particular bits of the immediate value to select data in a byte position of the source operand for relocation to a byte position which corresponds to the position of the particular bits in the immediate value; in response to determining the instruction corresponds to a shift instruction: perfor
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 33 total)
References Cited — Backward Prior Art (7)
Non-Patent Literature (2)
- Hewlett-Packard, "PA-RISC 2.0," 1995, pp. 7-40, 41, 42, 43, 44, 45, 48, 49, 50, 51, 108, 109.
- U.S. Appl. No. 11/197,705, filed Aug. 4, 2005.