# US 9,354,877 B2 · Systems, apparatuses, and methods for performing mask bit compression

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

- Number: US 9,354,877 B2
- Document ID: US9354877B2
- Status: Granted
- Kind: B2
- Application number: 13/992,709
- Filed: 2011-12-23
- Published: 2014-01-16
- Granted: 2016-05-31
- Earliest claimed: 2011-12-23
- Assignees: Intel Corporation
- Applicants: Bret L. Toll; Robert Valentine; Jesus Corbal; Elmoustapha Ould-Ahmed-Vall; Mark J. Charney
- Inventors: Bret L. Toll; Robert Valentine; Jesus Corbal; Elmoustapha Ould-Ahmed-Vall; Mark J. Charney
- Web page: https://patentgrep.com/patent/US9354877B2

## CPC

- G06F 9/30098: {Register arrangements}
- G06F 9/30018: {Bit or string instructions}
- G06F 9/30025: {Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion}
- G06F 9/30038: {using a mask}
- G06F 9/30181: {Instruction operation extension or modification}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of systems, apparatuses, and methods for performing in a computer processor mask bit compression in response to a single mask bit compression instruction that includes a source writemask register operand, a destination writemask register operand, and an opcode are described.

## Claims

### Claim 1

A method of performing in a computer processor mask bit compression in response to a single mask bit compression instruction that includes a source writemask register operand, a destination writemask register operand, and an opcode, the method comprising steps of:
executing the mask bit compression instruction to determine which writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register, wherein each bit of the source and destination writemask registers is a writemask bit; and
storing the determined writemask bits into the least significant bit positions of the destination writemask register.

### Claim 2 (depends on 1)

The method of claim 1, wherein the writemask registers are 16-bit registers each having 16 writemasks.

### Claim 3 (depends on 1)

The method of claim 1, wherein the writemask registers are 64-bit registers each having 64 writemasks.

### Claim 4 (depends on 1)

The method of claim 1, wherein the opcode sets a number writemask bits of the source writemask register to evaluate for determining which of the writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 5 (depends on 1)

The method of claim 1, wherein all writemask bits of the source writemask register are to be evaluated for determining which of the writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 6 (depends on 5)

The method of claim 5, wherein only the eight least significant writemask bits of the source writemask register are to be evaluated for determining which of the writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
setting all of the destination writemask's bits to be 0 prior to determining which writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 8 (depends on 1)

The method of claim 1, wherein the executing and storing steps further comprise:
determining if a least significant bit position of the source writemask register is 1;
when the a least significant bit position of the source writemask register is 1, writing a 1 into a least significant bit position of the destination writemask register that does not have a 1 already stored there; and
when the a least significant bit position of the source writemask register is 0, determining if a next least significant bit position of the source writemask register is 1 when the a least significant bit position of the source writemask register is 0.

### Claim 9

An article of manufacture comprising:
a non-transitory tangible machine-readable storage medium having stored thereon an occurrence of an instruction, wherein the instruction's format specifies as its only source operand a source operand a single writemask register and specifies as its destination a single writemask register, and wherein the instruction format includes an opcode which instructs a machine, responsive to the single occurrence of the single instruction, to cause at least some of the source operand's writemask bits to be written into one or more least significant bits of the destination operand's writemask register.

### Claim 10 (depends on 9)

The article of manufacture of claim 9, wherein the writemask registers are 16-bit registers each having 16 writemasks.

### Claim 11 (depends on 9)

The article of manufacture of claim 9, wherein the writemask registers are 64-bit registers each having 64 writemasks.

### Claim 12 (depends on 9)

The article of manufacture of claim 9, wherein the opcode sets a number writemask bits of the source writemask register to evaluate for determining which of the writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 13 (depends on 12)

The article of manufacture of claim 12, wherein all writemask bits of the source writemask register are to be evaluated for determining which of the writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 14 (depends on 12)

The article of manufacture of claim 12, wherein only the eight least significant writemask bits of the source writemask register are to be evaluated for determining which of the writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 15 (depends on 9)

The article of manufacture of claim 9, further comprising:
setting all of the destination writemask's bits to be 0 prior to causing at least some of the source operand's writemask bits to be written into one or more least significant bits of the destination operand's writemask register.

### Claim 16

An apparatus comprising;
a hardware decoder to decode an mask bit compression instruction, wherein the mask bit compression instruction includes a source writemask register operand, a destination writemask register operand, and an opcode;
execution logic to determine which writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register, wherein each bit of the source and destination writemask registers is a writemask bit, and store the determined writemask bits into the least significant bit positions of the destination writemask register.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the writemask registers are 16-bit registers each having 16 writemasks.

### Claim 18 (depends on 16)

The apparatus of claim 16, wherein the writemask registers are 64-bit registers each having 64 writemasks.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein the opcode sets a number writemask bits of the source writemask register to evaluate for determining which of the writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.

### Claim 20 (depends on 16)

The apparatus of claim 16, the execution logic further to set all of the destination writemask's bits to be 0 prior to determining which writemask bits of the source writemask register are to be written into the least significant bit positions of the destination writemask register.
