Instructions and logic to vectorize conditional loops
Abstract
Instructions and logic provide vectorization of conditional loops. A vector expand instruction has a parameter to specify a source vector, a parameter to specify a conditions mask register, and a destination parameter to specify a destination vector to hold n consecutive vector elements, each of the plurality of n consecutive vector elements having a same variable partition size of m bytes. In response to the processor instruction, data is copied from consecutive vector elements in the source vector, and expanded into unmasked vector elements of the specified destination vector, without copying data into masked vector elements of the destination vector, wherein n varies responsive to the processor instruction executed. The source vector may be a register and the destination vector may be in memory. Some embodiments store counts of the condition decisions. Alternative embodiments may store other data, for example such as target addresses, or table offsets, or indicators of processing directives, etc.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 45 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A processor comprising: a source vector register; a destination vector register; a decode stage to decode a processor instruction specifying a vector expand operation and a data partition size; and one or more execution units, responsive to the decoded processor instruction, to: read values from each of a first plurality of n data fields of the source vector register, wherein each of the first plurality of n data fields is to store a vector element having a same variable partition size of m bytes; and copy the data from consecutive vector elements in the source vector register, into unmasked v
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)
References Cited — Backward Prior Art (45)
Non-Patent Literature (5)
- Assembly Language, Mar. 26, 2010, Wikipedia, pp. 1-11 [retrieved from the internet on May 19, 2016].
- CSE 240 Chapter 2 Bits Data Types and Operations, Jul. 2, 2010, 12 pages, [retrieved from the internet on Apr. 1, 2015], retrieved from URL .
- CSE 240 Chapter 2 Bits Data Types and Operations, Jul. 2, 2010, 12 pages, [retrieved from the internet on Apr. 1, 2015], retrieved from URL <https://www.cis.upenn.edu/˜milom/cse240-Fall06/lectures/Ch02.pdf>.
- Freescale Semiconductor, AltiVec(tm) Technology Programming Environments Manual, ALTIVECPEM Rev. 3, Apr. 2006, 346 pages.
- Hennessy and Patterson, Computer Architecture A Quantitative Approach, 1996, Morgan Kaufman, Second Edition, Cover Pages and pp. 74-75.