This is a collection of Intel®’ IA32® Software Developer's Manuals (URL of the day) and AMD' AMD64 Architecture Programmer's Manual together with the related specifications, application notes, white papers, and change logs. The collection aims to keep all available revisions. It was originally created by Michal Necasek, see OS/2 Museum.

If you have a public document, related to the IA32® specifications and missing from the collection, please mail it to me. The content of this URL and all sub-ULRs is available for convenient bulk download by rsync x86docs password "" (empty).

B -- AArch32

B

Branch causes a branch to a target address.

It has encodings from the following instruction sets: A32 ( A1 ) and T32 ( T1 , T2 , T3 and T4 ) .

A1

313029282726252423222120191817161514131211109876543210
!= 11111010imm24
condH

Encoding

B{<c>}{<q>} <label>

Decode for this encoding

let imm32 : bits(32) = SignExtend{}(imm24::'00');

T1

1514131211109876543210
1101!= 111ximm8
cond

Encoding

B<c>{<q>} <label> // (Not permitted in IT block)

Decode for this encoding

if cond == '1110' then See("UDF"); end; if cond == '1111' then See("SVC"); end; let imm32 : bits(32) = SignExtend{}(imm8::'0'); if InITBlock() then UnpredictableProcedure(); end;

T2

1514131211109876543210
11100imm11
op0op1

Encoding

B{<c>}{<q>} <label> // (Outside or last in IT block)

Decode for this encoding

let imm32 : bits(32) = SignExtend{}(imm11::'0'); if InITBlock() && !LastInITBlock() then UnpredictableProcedure(); end;

T3

15141312111098765432101514131211109876543210
11110S!= 111ximm610J10J2imm11
cond

Encoding

B<c>.W <label> // (Not permitted in IT block, and <label> can be represented in T1)

B<c>{<q>} <label> // (Not permitted in IT block)

Decode for this encoding

if cond[3:1] == '111' then See("Related encodings"); end; let imm32 : bits(32) = SignExtend{}(S::J2::J1::imm6::imm11::'0'); if InITBlock() then UnpredictableProcedure(); end;

T4

15141312111098765432101514131211109876543210
11110Simm1010J11J2imm11

Encoding

B{<c>}{<q>} <label>

B{<c>}.W <label> // (<label> can be represented in T2)

Decode for this encoding

let I1 : bit = NOT(J1 XOR S); let I2 : bit = NOT(J2 XOR S); let imm32 : bits(32) = SignExtend{}(S::I1::I2::imm10::imm11::'0'); if InITBlock() && !LastInITBlock() then UnpredictableProcedure(); end;

For more information about the CONSTRAINED UNPREDICTABLE behavior, see Architectural Constraints on UNPREDICTABLE behaviors.

Related encodings: Branches and miscellaneous control.

Assembler Symbols

<c>

For the "A1" variant: see Standard assembler syntax fields.

For the "T1" and "T3" variants: see Standard assembler syntax fields. Must not be AL or omitted.

For the "T2" and "T4" variants: see Standard assembler syntax fields.

<q>

See Standard assembler syntax fields.

<label>

For the "A1" variant: the label of the instruction that is to be branched to. The assembler calculates the required value of the offset from the PC value of the B instruction to this label, then selects an encoding that sets imm32 to that offset.

Permitted offsets are multiples of 4 in the range –33554432 to 33554428.

For the "T1" variant: the label of the instruction that is to be branched to. The assembler calculates the required value of the offset from the PC value of the B instruction to this label, then selects an encoding that sets imm32 to that offset. Permitted offsets are even numbers in the range –256 to 254.

For the "T2" variant: the label of the instruction that is to be branched to. The assembler calculates the required value of the offset from the PC value of the B instruction to this label, then selects an encoding that sets imm32 to that offset. Permitted offsets are even numbers in the range –2048 to 2046.

For the "T3" variant: the label of the instruction that is to be branched to. The assembler calculates the required value of the offset from the PC value of the B instruction to this label, then selects an encoding that sets imm32 to that offset.

Permitted offsets are even numbers in the range –1048576 to 1048574.

For the "T4" variant: the label of the instruction that is to be branched to. The assembler calculates the required value of the offset from the PC value of the B instruction to this label, then selects an encoding that sets imm32 to that offset.

Permitted offsets are even numbers in the range –16777216 to 16777214.

Operation

if ConditionPassed() then EncodingSpecificOperations(); BranchWritePC(PC32() + imm32, BranchType_DIR); end;


2025-09_rel_asl1 2026-03-12 12:57:38

Copyright © 2010-2025 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.