# US 2022/0035628 A1 · Extending fused multiply-add instructions

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

- Number: US 2022/0035628 A1
- Document ID: US20220035628A1
- Status: Published application
- Kind: A1
- Application number: 16/942,104
- Filed: 2020-07-29
- Published: 2022-02-03
- Earliest claimed: 2020-07-29
- Assignees: Ghost Locomotion Inc.
- Applicants: Ghost Locomotion Inc.
- Inventors: JOHN HAYES; VOLKMAR UHLIG
- Web page: https://patentgrep.com/patent/US20220035628A1

## CPC

- G06F 9/3001: {Arithmetic instructions}
- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/30014: {with variable precision}
- G06F 9/30018: {Bit or string instructions}
- G06F 9/30025: {Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion}
- G06F 9/30032: {Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE}
- G06F 9/30038: {using a mask}
- G06F 9/30181: {Instruction operation extension or modification}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Extending fused multiply-add instructions, the method comprising: receiving an extended fused multiply-add (FMA) instruction indicating one or more operands of a fused multiply-add (FMA) operation and one or more transformations to be applied to the one or more operands; and performing, based on the extended FMA instruction, the one or more transformations and the FMA operation.

## Claims

### Claim 1

A method of extending fused multiply-add instructions, the method comprising:
receiving an extended fused multiply-add (FMA) instruction comprising a first subset of bits indicating each operand of a fused multiply-add (FMA) operation and a second subset of bits indicating one or more transformations to be applied to one or more operands of the FMA operation; and
performing, based on the extended FMA instruction, the one or more transformations and the FMA operation.

### Claim 2 (depends on 1)

The method of claim 1, wherein performing the one or more transformations and the FMA operation comprises performing the one or more transformations based on one or more parameters of the extended FMA instruction indicating the one or more transformations.

### Claim 3 (depends on 1)

The method of claim 1, wherein performing the one or more transformations and the FMA operation comprises loading, from one or more registers, data describing the one or more transformations.

### Claim 4 (depends on 1)

The method of claim 1, wherein the extended FMA instruction is one of a plurality of extended FMA instructions each corresponding to a different combination of transformation-operand groupings.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more transformations comprise a bit masking transformation.

### Claim 6 (depends on 1)

The method of claim 1, wherein the one or more transformations comprise a bit shifting operation.

### Claim 7 (depends on 1)

The method of claim 1, wherein the one or more transformations comprises a rounding operation.

### Claim 8 (depends on 1)

The method of claim 1, wherein the one or more transformations comprises a casting operation.

### Claim 9 (depends on 1)

The method of claim 1, wherein the one or more transformations comprises a conditional zeroing operation.

### Claim 10

An apparatus for extending fused multiply-add instructions, the apparatus configured to perform steps comprising:
receiving an extended fused multiply-add (FMA) instruction comprising a first subset of bits indicating each operand of a fused multiply-add (FMA) operation and a second subset of bits indicating one or more transformations to be applied to one or more operands of the FMA operation; and
performing, based on the extended FMA instruction, the one or more transformations and the FMA operation.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein performing the one or more transformations and the FMA operation comprises performing the one or more transformations based on one or more parameters of the extended FMA instruction indicating the one or more transformations.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein performing the one or more transformations and the FMA operation comprises loading, from one or more registers, data describing the one or more transformations.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein the extended FMA instruction is one of a plurality of extended FMA instructions each corresponding to a different combination of transformation-operand groupings.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the one or more transformations comprise a bit masking transformation.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the one or more transformations comprise a bit shifting operation.

### Claim 16 (depends on 10)

The apparatus of claim 10, wherein the one or more transformations comprises a rounding operation.

### Claim 17 (depends on 10)

The apparatus of claim 10, wherein the one or more transformations comprises a casting operation.

### Claim 18 (depends on 10)

The apparatus of claim 10, wherein the one or more transformations comprises a conditional zeroing operation.

### Claim 19

A computer program product disposed upon a non-transitory computer readable medium, the computer program product comprising computer program instructions for extending fused multiply-add instructions that, when executed, cause a computer system to perform steps comprising:
receiving an extended fused multiply-add (FMA) instruction comprising a first subset of bits indicating each operand of a fused multiply-add (FMA) operation and a second subset of bits indicating one or more transformations to be applied to one or more operands of the FMA operation; and
performing, based on the extended FMA instruction, the one or more transformations and the FMA operation.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein performing the one or more transformations and the FMA operation comprises performing the one or more transformations based on one or more parameters of the extended FMA instruction indicating the one or more transformations.
