发明名称 Generate predicates instruction for processing vectors
摘要 The described embodiments include a processor that executes a vector instruction. The processor starts by receiving a first input vector, a second input vector, and optionally receiving a predicate vector (each of which includes N elements) as inputs. The processor then executes the vector instruction. Executing the vector instruction causes the processor to generate a result vector. When generating the result vector, if the predicate vector was received, for each element of the result vector for which the corresponding element of the predicate vector is active, otherwise, for each element of the result vector, the processor determines elements that are to be set in the result vector based on values in elements in the first input vector and the second input vector. The processor then sets the determined elements of the result vector to a first predetermined value.
申请公布号 US8984262(B2) 申请公布日期 2015.03.17
申请号 US201113006243 申请日期 2011.01.13
申请人 Apple Inc. 发明人 Gonion Jeffry E.;Diefendorff Keith E.
分类号 G06F9/30;G06F9/45;G06F9/38 主分类号 G06F9/30
代理机构 Park, Vaughan, Fleming & Dowler LLP 代理人 Park, Vaughan, Fleming & Dowler LLP ;Jones Anthony P.
主权项 1. A method for executing a vector instruction in a processor, comprising: receiving a first input vector, a second input vector, and optionally receiving a predicate vector, wherein each vector includes N elements; and generating a result vector, wherein generating the result vector comprises: if the predicate vector was received, for each element of the result vector for which a corresponding element of the predicate vector is active, otherwise, for each element of the result vector, determining elements that are to be set in the result vector based on values in elements in the first input vector and the second input vector, wherein the determining comprises identifying a closest neighboring element on a predetermined side of a key element in the second input vector that indicates a dependency on the key element or any element between the neighboring element and the key element; andsetting the determined elements of the result vector to a first predetermined value.
地址 Cupertino CA US