# US 2017/0286112 A1 · Bit shuffle processors, methods, systems, and instructions

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0286112 A1
- Document ID: US20170286112A1
- Status: Published application
- Kind: A1
- Application number: 15/508,284
- Filed: 2015-09-04
- Published: 2017-10-05
- Earliest claimed: 2014-09-25
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Roger Espasa; Guillem Sole; David Guillen Fandos
- Web page: https://patentgrep.com/patent/US20170286112A1

## CPC

- G06F 9/30032: {Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE}
- G06F 9/30018: {Bit or string instructions}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30038: {using a mask}
- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/3853: {of compound instructions}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processor includes packed data registers and a decode unit to decode an instruction. The instruction is to indicate a first source operand having at least one lane of bits, and a second source packed data operand having a number of sub-lane sized bit selection elements. An execution unit is coupled with the packed data registers and the decode unit. The execution unit, in response to the instruction, stores a result operand in a destination storage location. The result operand includes, a different corresponding bit for each of the number of sub-lane sized bit selection elements. A value of each bit of the result operand corresponding to a sub-lane sized bit selection element is that of a bit of a corresponding lane of bits, of the at least one lane of bits of the first source operand, which is indicated by the corresponding sub-lane sized bit selection element.

## Claims

### Claim at position 1

-25. (canceled)

### Claim 26

A processor comprising:
a plurality of packed data registers;
a decode unit to decode an instruction, the instruction to indicate a first source operand that is to have at least one lane of bits, and the instruction to indicate a second source packed data operand that is to have a number of sub-lane sized bit selection elements; and
an execution unit coupled with the packed data registers and the decode unit, the execution unit, in response to the instruction, to store a result operand in a destination storage location that is to be indicated by the instruction, the result operand to include, a different corresponding bit for each of the number of sub-lane sized bit selection elements, a value of each bit of the result operand corresponding to a sub-lane sized bit selection element to be that of a bit of a corresponding lane of bits, of the at least one lane of bits of the first source operand, which is indicated by the corresponding sub-lane sized bit selection element.

### Claim 27 (depends on 26)

The processor of claim 26, wherein the number of sub-lane sized bit selection elements include a plurality of subsets that each correspond to a different one of a plurality of lanes of bits, and wherein the execution unit, in response to the instruction, is to use each subset of the sub-lane sized bit selection elements to select bits from within only a corresponding lane of bits.

### Claim 28 (depends on 27)

The processor of claim 27, wherein the execution unit, in response to the instruction, is to store the result operand in a packed data register having the plurality of lanes of bits.

### Claim 29 (depends on 28)

The processor of claim 28, wherein the execution unit, in response to the instruction, is to store the bits selected by each subset of the sub-lane sized bit selection elements in a corresponding lane of bits of the packed data register.

### Claim 30 (depends on 29)

The processor of claim 29, wherein the execution unit, in response to the instruction, is to store at least one replica of the bits selected by each subset of the sub-lane sized bit selection elements in the corresponding lane of bits of the packed data register.

### Claim 31 (depends on 30)

The processor of claim 30, wherein the decode unit is to decode the instruction that is to indicate a source predicate mask operand, and wherein the execution unit, in response to the instruction, is to use the source predicate mask operand to predicate storage of the bits selected by each subset of the sub-lane sized bit selection elements and replicas thereof in the corresponding lane of bits of the packed data register.

### Claim 32 (depends on 26)

The processor of claim 26, wherein each sub-lane sized bit selection element corresponds to a bit of the result operand in a same relative position, and wherein the second source packed data operand has at least sixteen sub-lane sized bit selection elements.

### Claim 33 (depends on 26)

The processor of claim 26, wherein the execution unit, in response to the instruction, is to store the result operand in the destination storage location which is a packed data operation mask register.

### Claim 34 (depends on 26)

The processor of claim 26, wherein the execution unit, in response to the instruction, is to store the result operand in the destination storage location which is a general-purpose register.

### Claim 35 (depends on 26)

The processor of claim 26, wherein the decode unit is to decode the instruction that is to indicate the first source operand that is to have a single lane of bits, wherein all of the number of sub-lane sized bit selection elements are to correspond to the single lane of bits, and wherein the execution unit, in response to the instruction, is to store a bit of the single lane of bits to the result operand for each of the number of sub-lane sized bit selection elements.

### Claim 36 (depends on 26)

The processor of claim 26, wherein the decode unit is to decode the instruction that is to indicate the first source operand is to have a plurality of lanes of bits.

### Claim 37 (depends on 26)

The processor of claim 26, wherein the decode unit is to decode the instruction that is to indicate the first source operand that is to have a single lane of bits, and wherein the processor, in response to the instruction, is to replicate the single lane of bits of the first source operand a plurality of times to create a plurality of lanes of bits.

### Claim 38 (depends on 26)

The processor of claim 26, wherein the decode unit is to decode the instruction that is to indicate the first source operand that is to have at least one 64-bit lane of bits, and is to indicate the second source packed data operand that is to have the number of at least 6-bit sized bit selection elements.

### Claim 39 (depends on 38)

The processor of claim 38, wherein each at least 6-bit bit selection element is in a different corresponding 8-bit byte of the second source packed data operand, and wherein the second source packed data operand has at least sixteen bit selection elements.

### Claim 40 (depends on 26)

The processor of claim 26, wherein the decode unit is to decode the instruction that is to indicate the second source packed data operand that is to have a same number of sub-lane sized bit selection elements as a number of bits in each of the at least one lane of bits of the first source operand.

### Claim 41

A method in a processor comprising:
receiving an instruction, the instruction indicating a first source operand having at least one lane of bits, and the instruction indicating a second source packed data operand having a number of sub-lane sized bit selection elements; and
storing a result operand in a destination storage location indicated by the instruction in response to the instruction, the result operand including a different corresponding bit for each of the number of sub-lane sized bit selection elements, a value of each bit of the result operand that corresponds to a sub-lane sized bit selection element being that of a bit of a corresponding lane of bits, of the at least one lane of bits of the first source operand, indicated by the corresponding sub-lane sized bit selection element.

### Claim 42 (depends on 41)

The method of claim 41, wherein storing comprises storing the result operand in the destination storage location which is a predicate mask register, and wherein each bit of the result operand corresponds to a sub-lane sized bit selection element in a same relative position.

### Claim 43 (depends on 41)

The method of claim 41, wherein receiving comprises receiving the instruction indicating the second source packed data operand having the number of sub-lane sized bit selection elements including a plurality of subsets that each correspond to a different one of a plurality of lanes of bits, and further comprising using each subset of the sub-lane sized bit selection elements to select bits from within only a corresponding lane of bits.

### Claim 44 (depends on 43)

The method of claim 43, wherein storing comprises storing the result operand in a packed data register having a plurality of lanes of bits, and wherein a lane of bits of the result operand includes the bits selected by the corresponding subset of the sub-lane sized bit selection elements as well as a plurality of replicas of the bits selected by the corresponding subset.

### Claim 45 (depends on 41)

The method of claim 41, wherein receiving comprises receiving the instruction indicating the first source operand having a plurality of 64-bit lanes of bits, and indicating the second source packed data operand having the number of at least 6-bit bit selection elements arranged as a plurality of sets each corresponding to a different one of the 64-bit lanes of bits.

### Claim 46 (depends on 41)

The method of claim 41, wherein receiving comprises receiving the instruction that indicates the first source operand that has a single lane of bits, and further comprising, in response to the instruction, replicating the single lane of bits of the first source operand a plurality of times to create a plurality of lanes of bits.

### Claim 47

A system to process instructions comprising:
an interconnect;
a processor coupled with the interconnect, the processor to receive an instruction that is to indicate a first source operand that is to have at least one lane of bits, to indicate a second source packed data operand that is to have a number of sub-lane sized bit selection elements, and to indicate a destination storage location, the processor, in response to the instruction, to store a result operand in the destination storage location, the result operand to include a different corresponding bit for each of the number of sub-lane sized bit selection elements, a value of each bit of the result operand corresponding to a sub-lane sized bit selection element to be that of a bit of a corresponding lane of bits, of the at least one lane of bits of the first source operand, which is indicated by the corresponding sub-lane sized bit selection element; and
a dynamic random access memory (DRAM) coupled with the interconnect.

### Claim 48 (depends on 47)

The system of claim 47, wherein the number of sub-lane sized bit selection elements include a plurality of subsets that each correspond to a different one of a plurality of lanes of bits, and wherein the processor, in response to the instruction, is to use each subset of the sub-lane sized bit selection elements to select bits from within only a corresponding lane of bits.

### Claim 49

An article of manufacture comprising a non-transitory machine-readable storage medium, the non-transitory machine-readable storage medium storing an instruction,
the instruction to indicate a first source operand having at least one lane of bits, and to indicate a second source packed data operand having a number of sub-lane sized bit selection elements, and the instruction if executed by a machine is to cause the machine to perform operations comprising:
storing a result operand in a destination storage location indicated by the instruction, the result operand to include a different corresponding bit for each of the number of sub-lane sized bit selection elements, a value of each bit of the result operand that corresponds to a sub-lane sized bit selection element to be that of a bit of a corresponding lane of bits, of the at least one lane of bits of the first source operand, indicated by the corresponding sub-lane sized bit selection element.

### Claim 50 (depends on 49)

The article of manufacture of claim 49, wherein the instruction if executed by the machine is to cause the machine to store the result operand in a predicate mask register.
