Methods, apparatus, instructions and logic to provide permute controls with leading zero count functionality
Abstract
Instructions and logic provide SIMD permute controls with leading zero count functionality. Some embodiments include processors with a register with a plurality of data fields, each of the data fields to store a second plurality of bits. A destination register has corresponding data fields, each of these data fields to store a count of the number of most significant contiguous bits set to zero for corresponding data fields. Responsive to decoding a vector leading zero count instruction, execution units count the number of most significant contiguous bits set to zero for each of data fields in the register, and store the counts in corresponding data fields of the first destination register. Vector leading zero count instructions can be used to generate permute controls and completion masks to be used along with the set of permute controls, to resolve dependencies in gather-modify-scatter SIMD operations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 13 · Forward citations: 2.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A processor comprising: decode circuitry to decode a first instruction; an execution circuit, responsive to a decoded first instruction, to: count a number of bits set to one, and store the count as a value in a corresponding data field in a first destination register; the decode circuitry to decode a second instruction; and the execution circuit, responsive to a decoded second instruction, to: compare the count with a corresponding value in a second source register, to determine if the count exceeds a threshold; and store results of the comparison as mask values in a mask destination register
- Claim 2Depends on #1
The processor of claim 1 , wherein the corresponding value in the second source register represents an iteration count.
- Claim 3Depends on #1
The processor of claim 1 , wherein the first instruction is a vector populat
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 12,105,635 B2 | Method and apparatus for vector permutation | 2024 | 0 |
| US 2021349832 A1 | Method and apparatus for vector permutation | — | 1 |
References Cited — Backward Prior Art (13)
Non-Patent Literature (1)
- Kumar, et al., "Atomic Vector Operations on Chip Multiprocessors," International Symposium on Computer Architecture, IEEE 2008, DOI 10.1109/ISCA.2008.38, 12 pages.