You copied the Doc URL to your clipboard.

16.24 BFI

Bitfield Insert.

This instruction is an alias of BFM.

Syntax

BFI Wd, Wn, #lsb, #width ; 32-bit general registers

Equivalent to BFM Wd, Wn, #(-lsb MOD 32), #(width-1).

BFI Xd, Xn, #lsb, #width ; 64-bit general registers

Equivalent to BFM Xd, Xn, #(-lsb MOD 64), #(width-1).

Where:

Wd

Is the 32-bit name of the general-purpose destination register.

Wn

Is the 32-bit name of the general-purpose source register.

lsb

Depends on the instruction variant:

32-bit general registers

Is the bit number of the lsb of the destination bitfield, in the range 0 to 31.

64-bit general registers

Is the bit number of the lsb of the destination bitfield, in the range 0 to 63.

width

Depends on the instruction variant:

32-bit general registers

Is the width of the bitfield, in the range 1 to 32-lsb.

64-bit general registers

Is the width of the bitfield, in the range 1 to 64-lsb.

Xd

Is the 64-bit name of the general-purpose destination register.

Xn

Is the 64-bit name of the general-purpose source register.

Usage

Bitfield Insert copies any number of low-order bits from a source register into the same number of adjacent bits at any position in the destination register, leaving other bits unchanged.

Was this page helpful? Yes No