# US 10,956,126 B2 · Executing perform floating point operation instructions

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

- Number: US 10,956,126 B2
- Document ID: US10956126B2
- Status: Granted
- Kind: B2
- Application number: 16/415,178
- Filed: 2019-05-17
- Published: 2019-09-05
- Granted: 2021-03-23
- Earliest claimed: 2007-10-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Michel H. T. Hack; Ronald M. Smith, Sr.
- Web page: https://patentgrep.com/patent/US10956126B2

## CPC

- G06F 7/483: Computations with numbers represented by a non-linear combination of denominational numbers, e.g. rational numbers, logarithmic number system or floating-point numbers {(G06F7/4806, G06F7/4824, G06F7/49, G06F7/491, G06F7/544 take precedence)}
- G06F 7/4991: {Overflow or underflow}
- G06F 9/30014: {with variable precision}
- G06F 9/30025: {Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion}
- G06F 9/30094: {Condition code generation, e.g. Carry, Zero flag}
- G06F 9/30181: {Instruction operation extension or modification}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Execution of a machine instruction in a central processing unit. A perform floating-point operation instruction and a test bit are obtained. If the test bit has a first value, a specified floating-point operation function is performed, and a condition code is set to a value determined by the specified function. If the test bit has a second value, a check is made to determine if the specified function is valid and installed on the machine. If the specified function is valid and installed on the machine, the condition code is set to one code value, and if the specified function is either not valid or not installed on the machine, the condition code is set to a second code value.

## Claims

### Claim 1

A computer-implemented method of performing an instruction for converting a floating-point operand, the method comprising:
executing, by a processor, the instruction, the executing comprising:
based on a test indicator being one value:
performing a specified floating-point conversion function to produce a result, wherein the specified floating-point conversion function is one of a plurality of specifiable floating-point conversion functions;
storing the result; and
setting a condition code, the condition code indicating whether the performing the specified floating-point conversion function encountered an exceptional condition; and
based on the test indicator being another value:
determining whether the specified floating-point conversion function is an installed floating-point conversion function which the processor is configured to execute;
setting the condition code without storing a result, the condition code set based on the test indicator being another value indicating whether the specified floating-point conversion function is an installed floating-point conversion function; and
setting a return code.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein a first value of the condition code indicates that the specified floating-point conversion function is installed and a second value of the condition code indicates that the specified floating-point conversion function is invalid or not installed.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein the test indicator is located in a selected register.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, wherein the selected register is a general register.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein the general register is an implied operand of the instruction.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the specified floating-point conversion function is specified in a chosen register accessed by the instruction.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the chosen register is a general register, the general register further including the test indicator.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the return code is included in a particular register.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the particular register is a particular general register.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein the particular general register is different from a selected general register including the test indicator.

### Claim 11

A computer system for performing an instruction for converting a floating-point operand, the computer system comprising:
a memory; and
a processor in communication with the memory, wherein the computer system is configured to perform a method, said method comprising:
executing, by the processor, the instruction, the executing comprising:
based on a test indicator being one value:
performing a specified floating-point conversion function to produce a result, wherein the specified floating-point conversion function is one of a plurality of specifiable floating-point conversion functions;
storing the result; and
setting a condition code, the condition code indicating whether the performing the specified floating-point conversion function encountered an exceptional condition; and
based on the test indicator being another value:
determining whether the specified floating-point conversion function is an installed floating-point conversion function which the processor is configured to execute;
setting the condition code without storing a result, the condition code set based on the test indicator being another value indicating whether the specified floating-point conversion function is an installed floating-point conversion function; and
setting a return code.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein a first value of the condition code indicates that the specified floating-point conversion function is installed and a second value of the condition code indicates that the specified floating-point conversion function is invalid or not installed.

### Claim 13 (depends on 11)

The computer system of claim 11, wherein the test indicator is located in a selected register.

### Claim 14 (depends on 11)

The computer system of claim 11, wherein the specified floating-point conversion function is specified in a chosen register accessed by the instruction.

### Claim 15 (depends on 14)

The computer system of claim 14, wherein the chosen register is a general register, the general register further including the test indicator.

### Claim 16

A computer program product for performing an instruction for converting a floating-point operand, the computer program product comprising:
a non-transitory computer readable storage medium readable by a processing circuit and storing instructions for performing a method comprising:
executing, by a processor, the instruction, the executing comprising:
based on a test indicator being one value:
performing a specified floating-point conversion function to produce a result, wherein the specified floating-point conversion function is one of a plurality of specifiable floating-point conversion functions;
storing the result; and
setting a condition code, the condition code indicating whether the performing the specified floating-point conversion function encountered an exceptional condition; and
based on the test indicator being another value:
determining whether the specified floating-point conversion function is an installed floating-point conversion function which the processor is configured to execute;
setting the condition code without storing a result, the condition code set based on the test indicator being another value indicating whether the specified floating-point conversion function is an installed floating-point conversion function; and
setting a return code.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein a first value of the condition code indicates that the specified floating-point conversion function is installed and a second value of the condition code indicates that the specified floating-point conversion function is invalid or not installed.

### Claim 18 (depends on 16)

The computer program product of claim 16, wherein the test indicator is located in a selected register.

### Claim 19 (depends on 16)

The computer program product of claim 16, wherein the specified floating-point conversion function is specified in a chosen register accessed by the instruction.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the chosen register is a general register, the general register further including the test indicator.
