uxtb
Unsigned Extend Byte (A32)
UXTB<c> <Rd>, <Rm> {, <rotation>}
Zero-extends the low byte to 32-bits.
Pseudocode Operation
rotated ← ROR(Rm, rotation * 8)
Rd ← ZeroExtend(rotated[7:0], 32)
Example
UXTB r0, r2
Encoding
Binary Layout
cond
31:28
01101
27:23
1
22
10
21:20
1111
19:16
Rd
15:12
rotate
11:10
0
9
0
8
0111
7:4
Rm
3:0
Operands
-
Rd
Destination general-purpose register -
Rm
Second source / offset general-purpose register
Reference
View in Arm A64 ISA Reference ↗
Arm AArch32 ISA
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0x06EF0070 | UXTB{<c>}{<q>} {<Rd>,} <Rm> {, ROR #<amount>} | A32 | cond | 01101 | 1 | 10 | 1111 | Rd | rotate | 0 | 0 | 0111 | Rm | ||
| 0xB2C0 | UXTB{<c>}{<q>} {<Rd>,} <Rm> | T32 | 10110010 | 1 | 1 | Rm | Rd | ||
| 0xFA5FF080 | UXTB{<c>}.W {<Rd>,} <Rm> | T32 | 111110100 | 10 | 1 | 1111 | 1111 | Rd | 1 | 0 | rotate | Rm |
Description
Unsigned Extend Byte extracts an 8-bit value from a register, zero-extends it to 32 bits, and writes the result to the destination register. The instruction can specify a rotation by 0, 8, 16, or 24 bits before extracting the 8-bit value.
Operation
if ConditionPassed() then
EncodingSpecificOperations();
rotated = ROR(R[m], rotation);
R[d] = ZeroExtend(rotated<7:0>, 32);