Instructions and logic to vectorize conditional loops
    59.
    发明授权
    Instructions and logic to vectorize conditional loops 有权
    用于向量化条件循环的指令和逻辑

    公开(公告)号:US09501276B2

    公开(公告)日:2016-11-22

    申请号:US13731809

    申请日:2012-12-31

    申请人: Intel Corporation

    IPC分类号: G06F15/76 G06F9/30

    摘要: 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.

    摘要翻译: 指令和逻辑提供条件循环的向量化。 矢量展开指令具有指定源矢量的参数,用于指定条件屏蔽寄存器的参数和用于指定保持n个连续矢量元素的目的地矢量的目的地参数,所述多个n个连续矢量元素中的每一个具有相同的矢量元素 可变分区大小为m字节。 响应于处理器指令,从源向量中的连续向量元素复制数据,并将其扩展到指定目标向量的未屏蔽向量元素,而不将数据复制到目标向量的被掩蔽向量元素中,其中n响应于处理器 执行指令 源向量可以是寄存器,并且目的地向量可以在存储器中。 一些实施例存储条件决定的计数。 替代实施例可以存储其他数据,例如目标地址或表偏移,或处理指令的指示符等。