# US 2012/0254593 A1 · Systems, apparatuses, and methods for jumps using a mask register

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

- Number: US 2012/0254593 A1
- Document ID: US20120254593A1
- Status: Published application
- Kind: A1
- Application number: 13/078,901
- Filed: 2011-04-01
- Published: 2012-10-04
- Earliest claimed: 2011-04-01
- Inventors: Jesus Corbal San Adrian; Bret Toll; Robert C. Valentine; Milind Baburao Girkar; Andrew Thomas Foryth; George Z. Chrysos; Edward Thomas Grochowski; Dennis R. Bradford
- Web page: https://patentgrep.com/patent/US20120254593A1

## CPC

- G06F 9/324: {using program counter relative addressing}
- G06F 9/30018: {Bit or string instructions}
- G06F 9/30038: {using a mask}
- G06F 9/30058: {Conditional branch instructions}
- G06F 9/30094: {Condition code generation, e.g. Carry, Zero flag}
- G06F 9/323: {for indirect branch instructions}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of systems, apparatuses, and methods for performing a jump instruction in a computer processor are described. In some embodiments, the execution of a blend instruction causes a conditional jump to an address of a target instruction when all of bits of a writemask are zero, wherein the address of the target instruction is calculated using an instruction pointer of the instruction and the relative offset.

## Claims

### Claim 1

A method of performing a jump near if the writemask is zero (JKZD) instruction in a computer processor, comprising:
fetching the JKZD instruction, wherein the JKZD instruction includes a writemask operand and relative offset;
decoding the fetched JKZD instruction;
executing the fetched JKZD instruction to conditionally jump to an address of a target instruction when all of bits of the writemask are zero, wherein the address of the target instruction is calculated using an instruction pointer of the JKZD instruction and the relative offset.

### Claim 2 (depends on 1)

The method of claim 1, wherein the writemask is a 16-bit register.

### Claim 3 (depends on 1)

The method of claim 1, wherein the relative offset is an 8-bit immediate value.

### Claim 4 (depends on 1)

The method of claim 1, wherein the relative offset is a 32-bit immediate value.

### Claim 5 (depends on 1)

The method of claim 1, wherein the instruction pointer of the JKZD instruction is stored in an EIP register.

### Claim 6 (depends on 1)

The method of claim 1, wherein the instruction pointer of the JKZD instruction is stored in a RIP register.

### Claim 7 (depends on 1)

The method of claim 1, wherein the executing further comprises:
generating a temporary instruction pointer, wherein the temporary instruction pointer is the instruction pointer of the JKZD instruction plus the relative offset;
setting the temporary instruction pointer to be the address of the target instruction when the temporary instruction pointer is not outside of a code segment limit of a program including the JKZD instruction; and
generating a fault when the temporary instruction pointer to be the address of the target instruction when the temporary instruction pointer is outside of the code segment limit of the program including the JKZD instruction.

### Claim 8 (depends on 7)

The method of claim 7, wherein the executing further comprises:
clearing the upper two bytes of the temporary instruction pointer when the operand size of the JKZD instruction is 16 bits prior to setting the temporary instruction pointer to be the address of the target instruction when the temporary instruction pointer is not outside of a code segment limit of a program including the JKZD instruction.

### Claim 9

A method of performing a jump near if the writemask is not zero (JKNZD) instruction in a computer processor, comprising:
fetching the JKNZD instruction, wherein the JKNZD instruction includes a writemask operand and relative offset;
decoding the fetched JKNZD instruction;
executing the fetched JKNZD instruction to conditionally jump to an address of a target instruction when at least a bit of the writemask in not zero, wherein the address of the target instruction is calculated using an instruction pointer of the JKNZD instruction and the relative offset.

### Claim 10 (depends on 9)

The method of claim 9, wherein the writemask is a 16-bit register.

### Claim 11 (depends on 9)

The method of claim 9, wherein the relative offset is an 8-bit immediate value.

### Claim 12 (depends on 9)

The method of claim 9, wherein the relative offset is a 32-bit immediate value.

### Claim 13 (depends on 9)

The method of claim 9, wherein the instruction pointer of the JKNZD instruction is stored in an EIP register.

### Claim 14 (depends on 9)

The method of claim 9, wherein the instruction pointer of the JKNZD instruction is stored in a RIP register.

### Claim 15 (depends on 9)

The method of claim 9, wherein the executing further comprises:
generating a temporary instruction pointer, wherein the temporary instruction pointer is the instruction pointer of the JKNZD instruction plus the relative offset;
setting the temporary instruction pointer to be the address of the target instruction when the temporary instruction pointer is not outside of a code segment limit of a program including the JKNZD instruction; and
generating a fault when the temporary instruction pointer to be the address of the target instruction when the temporary instruction pointer is outside of the code segment limit of the program including the JKNZD instruction.

### Claim 16 (depends on 15)

The method of claim 15, wherein the executing further comprises:
clearing the upper two bytes of the temporary instruction pointer when the operand size of the instruction is 16 bits prior to setting the temporary instruction pointer to be the address of the target instruction when the temporary instruction pointer is not outside of a code segment limit of a program including the JKNZD instruction.

### Claim 17

An apparatus comprising;
a hardware decoder to decode
a jump near if the writemask is zero (JKZD) instruction, wherein the JKNZD instruction includes a first writemask operand and a first relative offset, and
a jump near if the writemask is not (JKNZD), wherein the JKNZD instruction includes a second writemask operand and second relative offset; and
execution logic to execute decoded JKZD and JKNZD instructions, wherein an execution of a decoded JKZD instruction to cause a conditional jump to an address of a first target instruction when all of bits of the first writemask are zero, wherein the address of the first target instruction is calculated using an instruction pointer of the JKZD instruction and the fisrrt relative offset, and an execution of a decoded JKNZD instruction to cause a conditional jump to an address of a second target instruction when at least a bit of the second writemask in not zero, wherein the address of the second target instruction is calculated using an instruction pointer of the JKNZD instruction and the second relative offset.

### Claim 18 (depends on 18)

The apparatus of claim 18, wherein the execution logic comprises vector execution logic.

### Claim 19 (depends on 18)

The apparatus of claim 18, wherein the writemasks of the JKZD and JKNZD are dedicated 16-bit registers.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the instruction pointers of the JKZD and JKNZD instructions are stored in an EIP register.
