Operations:

Format

Syntax:

Operation:

Operands:

Architecture revision

Opcode

1

bfins Rd, Rs, bp5, w5

Rd[bp5+w5-1:bp5] = Rs[w5-1:0];
{d, s} ∈ {0, 1, …, 15}
{bp5, w5} ∈ {0, 1, ..., 31}

Rev1+

111

Rd

11101

Rs

110100

bp5

w5

3

4

5

4

6

5

5

Description

This instruction inserts the lower w5 bits of Rs in Rd at bit-offset bp5.

Status Flags:

Q:

Not affected

V:

Not affected

N:

N = RES[31]

Z:

Z = (RES[31:0] == 0)

C:

C = RES[31]

Note:

If (w5 = 0) or if (bp5 + w5 > 32) the result is undefined.