# US 2023/0069000 A1 · Bfloat16 arithmetic instructions

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

- Number: US 2023/0069000 A1
- Document ID: US20230069000A1
- Status: Published application
- Kind: A1
- Application number: 17/463,398
- Filed: 2021-08-31
- Published: 2023-03-02
- Earliest claimed: 2021-08-31
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Alexander HEINECKE; Menachem ADELMAN; Robert VALENTINE; Zeev SPERBER; Amit GRADSTEIN; Mark CHARNEY; Evangelos GEORGANAS; Dhiraj KALAMKAR; Christopher HUGHES; Cristina ANDERSON
- Web page: https://patentgrep.com/patent/US20230069000A1

## CPC

- G06F 9/30014: {with variable precision}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- 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/30098: {Register arrangements}
- G06F 9/3017: {Runtime instruction translation, e.g. macros}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for performing arithmetic operations on BF16 values are described. An exemplary instruction includes fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of location of a packed data destination operand, wherein the opcode is to indicate an arithmetic operation execution circuitry is to perform, for each data element position of the identified packed data source operands, the arithmetic operation on BF16 data elements in that data element position in BF16 format and store a result of each arithmetic operation into a corresponding data element position of the identified packed data destination operand.

## Claims

### Claim 1

An apparatus comprising:
decode circuitry to decode an instance of a single instruction, the single instruction to include fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of location of a packed data destination operand, wherein the opcode is to indicate an arithmetic operation execution circuitry is to perform, for each data element position of the identified packed data source operands, the arithmetic operation on BF16 data elements in that data element position in BF16 format and store a result of each arithmetic operation into a corresponding data element position of the identified packed data destination operand; and
the execution circuitry to execute the decoded instruction according to the opcode.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the field for the identification of the first source operand is to identify a vector register.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein the field for the identification of the first source operand is to identify a memory location.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the arithmetic operation is addition.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the arithmetic operation is multiplication.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the arithmetic operation is division.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the arithmetic operation is subtraction.

### Claim 8

A system comprising:
memory to store an instance of a single instruction;
decode circuitry to decode the instance of the single instruction, the single instruction to include fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of location of a packed data destination operand, wherein the opcode is to indicate an arithmetic operation execution circuitry is to perform, for each data element position of the identified packed data source operands, the arithmetic operation on BF16 data elements in that data element position in BF16 format and store a result of each arithmetic operation into a corresponding data element position of the identified packed data destination operand; and
the execution circuitry to execute the decoded instruction according to the opcode.

### Claim 9 (depends on 8)

The system of claim 8, wherein the field for the identification of the first source operand is to identify a vector register.

### Claim 10 (depends on 8)

The system of claim 8, wherein the field for the identification of the first source operand is to identify a memory location.

### Claim 11 (depends on 8)

The system of claim 8, wherein the arithmetic operation is addition.

### Claim 12 (depends on 8)

The system of claim 8, wherein the arithmetic operation is multiplication.

### Claim 13 (depends on 8)

The system of claim 8, wherein the arithmetic operation is division.

### Claim 14 (depends on 8)

The system of claim 8, wherein the arithmetic operation is subtraction.

### Claim 15

A method comprising:
decoding an instance of a single instruction, the single instruction to include fields for an opcode, an identification of a location of a first packed data source operand, an identification of a location of a second packed data source operand, and an identification of location of a packed data destination operand, wherein the opcode is to indicate an arithmetic operation execution circuitry is to perform, for each data element position of the identified packed data source operands, the arithmetic operation on BF16 data elements in that data element position in BF16 format and store a result of each arithmetic operation into a corresponding data element position of the identified packed data destination operand; and
executing the decoded instruction according to the opcode.

### Claim 16 (depends on 15)

The method of claim 15, wherein the arithmetic operation is addition.

### Claim 17 (depends on 15)

The method of claim 15, wherein the arithmetic operation is multiplication.

### Claim 18 (depends on 15)

The method of claim 15, wherein the arithmetic operation is division.

### Claim 19 (depends on 15)

The method of claim 15, wherein the arithmetic operation is subtraction.

### Claim 20 (depends on 15)

The method of claim 15, further comprising:
translating the single instruction to one or more instructions of a different instruction set architecture, wherein the executing the decoded instruction according to the opcode comprises executing the one or more instructions of the different instruction set architecture.
