# US 2010/0169621 A1 · Processor test apparatus, processor test method, and processor test program

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

- Number: US 2010/0169621 A1
- Document ID: US20100169621A1
- Status: Published application
- Kind: A1
- Application number: 12/644,822
- Filed: 2009-12-22
- Published: 2010-07-01
- Earliest claimed: 2008-12-26
- Assignees: Fujitsu Limited
- Inventors: Hiroshi Takao
- Web page: https://patentgrep.com/patent/US20100169621A1

## CPC

- G06F 11/2236: {to test CPU or processors}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processor test method of testing a processor includes executing each test instruction of a test instruction sequence to obtain a condition code set by a condition code setting instruction of the test instruction sequence for testing the processor; producing a condition branching instruction to add the produced condition branching instruction to the end of the condition code setting instruction of the test instruction sequence, the condition branching instruction branching to an error output instruction when a condition code that does not match the obtained condition code is supplied; and executing, by an advanced control scheme, a test instruction sequence in which the condition branching instruction is added to the test instruction sequence.

## Claims

### Claim 1

A processor test apparatus that tests a processor, the apparatus comprising:
a code obtaining unit that executes a test instruction of a test instruction sequence for testing the processor, and obtains a condition code set by a condition code setting instruction of the test instruction sequence;
an instruction adding unit that produces a condition branching instruction branching to an error output instruction when a condition code that does not match the obtained condition code is supplied, and adds the produced condition branching instruction to the end of the condition code setting instruction of the test instruction sequence; and
an instruction executing unit that causes the processor to execute the test instruction sequence to which the condition branching instruction is added by an advanced control scheme.

### Claim 2 (depends on 1)

The processor test apparatus according to claim 1, wherein the error output instruction includes an information output instruction identifying a condition code setting instruction in which a condition code that does not match the obtained condition code is set.

### Claim 3 (depends on 1)

The processor test apparatus according to claim 1, wherein the instruction adding unit adds the produced condition branching instruction to the end of an instruction that does not change a condition code, when the number of instructions that do not change the condition code reaches a specific value after the condition code setting instruction.

### Claim 4 (depends on 1)

The processor apparatus according to claim 1, wherein the code obtaining unit obtains the condition code by adding an interruption instruction for obtaining the condition code to the end of the condition code setting instruction of a randomly-produced test instruction sequence, and by executing the interruption instruction.

### Claim 5

A processor test method of testing a processor, the method comprising:
executing each test instruction of a test instruction sequence for testing the processor to obtain a condition code set by a condition code setting instruction of the test instruction sequence;
producing a condition branching instruction branching to an error output instruction in a condition when a condition code that does not match the obtained condition code is supplied;
adding the produced condition branching instruction to the end of the condition code setting instruction in the test instruction sequence; and
executing the test instruction sequence to which the condition branching instruction is added, by an advanced control scheme.

### Claim 6 (depends on 5)

The processor test method according to claim 5, wherein the error output instruction includes an information output instruction identifying a condition code setting instruction in which a condition code that does not match the obtained condition code is set.

### Claim 7 (depends on 5)

The processor test method according to claim 5, wherein, in the adding, the produced condition branching instruction is added to the end of an instruction that does not change a condition code, when the number of instructions that do not change the condition code reaches a specific value after the condition code setting instruction.

### Claim 8 (depends on 5)

The processor test method according to claim 5, wherein an interruption instruction for obtaining the condition code is added to the end of the condition code setting instruction of the randomly-produced test instruction sequence, and the interruption instruction is executed to obtain the condition code.

### Claim 9

A processor test program for testing a processor, the processor test program being stored in a computer-readable storage medium, the processor test program causing a computer to execute:
executing a test instruction of a test instruction sequence to obtain a condition code set by a condition code setting instruction of the test instruction sequence for testing the processor;
producing a condition branching instruction;
adding the produced condition branching instruction branching to an error output instruction when a condition code that does not match the obtained condition code is supplied to the end of the condition code setting instruction of the test instruction sequence; and
executing, by an advanced control scheme, a test instruction sequence in which the condition branching instruction is added.

### Claim 10 (depends on 9)

The processor test program according to claim 9, wherein the error output instruction includes an information output instruction identifying a condition code setting instruction, and a condition code that does not match the obtained condition code is set in the condition code setting instruction.
