# US 2018/0004514 A1 · Systems, Apparatuses, and Methods for Cumulative Summation

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

- Number: US 2018/0004514 A1
- Document ID: US20180004514A1
- Status: Published application
- Kind: A1
- Application number: 15/201,390
- Filed: 2016-07-02
- Published: 2018-01-04
- Earliest claimed: 2016-07-02
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: William M. Brown; Elmoustapha Ould-Ahmed-Vall
- Web page: https://patentgrep.com/patent/US20180004514A1

## CPC

- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/3001: {Arithmetic 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/30192: {according to data descriptor, e.g. dynamic data typing}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems, methods, and apparatuses for executing an instruction are described. For example, an instruction includes at least an opcode, a field for a packed data source operand, and a field for a packed data destination operand. When executed, the instruction causes for each data element position of the source operand, add to a value stored in that data element position all values stored in preceding data element positions of the packed data source operand and store a result of the addition into a corresponding data element position of the packed data destination operand.

## Claims

### Claim 1

An apparatus comprising:
a decoder circuit to decode an instruction, wherein the instruction to include at least an opcode, a field for a packed data source operand, and a field for a packed data destination operand; and
execution circuitry to execute the decoded instruction to, for each data element position of the source operand, add to a value stored in that data element position all values stored in preceding data element positions of the packed data source operand and store a result of the addition into a corresponding data element position of the packed data destination operand.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the source operand is a packed data register and the destination operand is a packed data register.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein a single packed data register is used for the source and destination operands.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the data elements of the source operand are stored in a little endian format.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the data elements of the source operand are stored in a big endian format.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the instruction to include a field writemask operand.

### Claim 7 (depends on 7)

The apparatus of claim 7, wherein the execution circuitry to store a result of the adds based on values of the writemask operand.

### Claim 8

An method comprising:
decoding an instruction, wherein the instruction to include at least an opcode, a field for a packed data source operand, and a field for a packed data destination operand; and
executing the decoded instruction to, for each data element position of the source operand, add to a value stored in that data element position all values stored in preceding data element positions of the packed data source operand and store a result of the addition into a corresponding data element position of the packed data destination operand.

### Claim 9 (depends on 8)

The method of claim 8, wherein the source operand is a packed data register and the destination operand is a packed data register.

### Claim 10 (depends on 9)

The method of claim 9, wherein a single packed data register is used for the source and destination operands.

### Claim 11 (depends on 8)

The method of claim 8, wherein the data elements of the source operand are stored in a little endian format.

### Claim 12 (depends on 8)

The method of claim 8, wherein the data elements of the source operand are stored in a big endian format.

### Claim 13 (depends on 8)

The method of claim 8, wherein the instruction to include a field writemask operand.

### Claim 14 (depends on 13)

The method of claim 13, wherein the storing is based on values of the writemask operand.

### Claim 15

A non-transitory machine-readable medium storing instructions which when executed to cause a processor to perform a method, the method comprising:
decoding an instruction, wherein the instruction to include at least an opcode, a field for a packed data source operand, and a field for a packed data destination operand; and
executing the decoded instruction to, for each data element position of the source operand, add to a value stored in that data element position all values stored in preceding data element positions of the packed data source operand and store a result of the addition into a corresponding data element position of the packed data destination operand.

### Claim 16 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the source operand is a packed data register and the destination operand is a packed data register.

### Claim 17 (depends on 16)

The non-transitory machine-readable medium of claim 16, wherein a single packed data register is used for the source and destination operands.

### Claim 18 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the data elements of the source operand are stored in a little endian format.

### Claim 19 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the data elements of the source operand are stored in a big endian format.

### Claim 20 (depends on 15)

The non-transitory machine-readable medium of claim 15, wherein the instruction to include a field writemask operand and the storing is based on values of the writemask operand.
