Unofficial mirror. This is a community mirror of Jon's Arm Reference by Jon Palmisciano, preserved after the original was asked to shut down on 4 December 2026. Hosted at arm.3nd3r.net. Not affiliated with Arm or Jon Palmisciano. Official documentation is at developer.arm.com.
← HomeBitfield move
This instruction is usually accessed using one of its aliases, which are always preferred for disassembly.
If <imms> is greater than or equal to <immr>, this copies a bitfield of (<imms>-<immr>+1) bits starting from bit position <immr> in the source register to the least significant bits of the destination register.
If <imms> is less than <immr>, this copies a bitfield of (<imms>+1) bits from the least significant bits of the source register to bit position (regsize-<immr>) of the destination register, where regsize is the destination register size of 32 or 64 bits.
In both cases, the other bits of the destination register remain unchanged.
This instruction is used by the aliases BFC, BFI, and BFXIL.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| sf | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | N | immr | imms | Rn | Rd | ||||||||||||||||||
| opc | |||||||||||||||||||||||||||||||
if sf == '1' && N != '1' then EndOfDecode(Decode_UNDEF); end; if sf == '0' && (N != '0' || immr[5] != '0' || imms[5] != '0') then EndOfDecode(Decode_UNDEF); end; let d : integer{} = UInt(Rd); let n : integer{} = UInt(Rn); let datasize : integer{} = 32 << UInt(sf); let r : integer = UInt(immr); var wmask : bits(datasize); var tmask : bits(datasize); (wmask, tmask) = DecodeBitMasks{datasize}(N, imms, immr, FALSE);
| <Wd> |
Is the 32-bit name of the general-purpose destination register, encoded in the "Rd" field. |
| <Wn> |
Is the 32-bit name of the general-purpose source register, encoded in the "Rn" field. |
| <Xd> |
Is the 64-bit name of the general-purpose destination register, encoded in the "Rd" field. |
| <Xn> |
Is the 64-bit name of the general-purpose source register, encoded in the "Rn" field. |
| Alias | Is preferred when |
|---|---|
| BFC | Rn == '11111' && UInt(imms) < UInt(immr) |
| BFI | Rn != '11111' && UInt(imms) < UInt(immr) |
| BFXIL | UInt(imms) >= UInt(immr) |
let src : bits(datasize) = X{}(n); let dst : bits(datasize) = X{}(d); // Perform bitfield move on low bits let bot : bits(datasize) = (dst AND NOT wmask) OR (ROR(src, r) AND wmask); // Combine extension bits and result bits X{datasize}(d) = (dst AND NOT tmask) OR (bot AND tmask);
This instruction is a data-independent-time instruction as described in About PSTATE.DIT.
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.