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 ) .
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 |
!= 1111 | 1 | 0 | 1 | 0 | imm24 | ||||||||||||||||||||||||||
cond |
constant imm32 = SignExtend(imm24:'00', 32);
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
1 | 1 | 0 | 1 | != 111x | imm8 | ||||||||||
cond |
if cond == '1110' then SEE "UDF"; if cond == '1111' then SEE "SVC"; constant imm32 = SignExtend(imm8:'0', 32); if InITBlock() then UNPREDICTABLE;
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
1 | 1 | 1 | 0 | 0 | imm11 |
constant imm32 = SignExtend(imm11:'0', 32); if InITBlock() && !LastInITBlock() then UNPREDICTABLE;
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
1 | 1 | 1 | 1 | 0 | S | != 111x | imm6 | 1 | 0 | J1 | 0 | J2 | imm11 | ||||||||||||||||||
cond |
if cond<3:1> == '111' then SEE "Related encodings"; constant imm32 = SignExtend(S:J2:J1:imm6:imm11:'0', 32); if InITBlock() then UNPREDICTABLE;
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
1 | 1 | 1 | 1 | 0 | S | imm10 | 1 | 0 | J1 | 1 | J2 | imm11 |
constant I1 = NOT(J1 EOR S); constant I2 = NOT(J2 EOR S); constant imm32 = SignExtend(S:I1:I2:imm10:imm11:'0', 32); if InITBlock() && !LastInITBlock() then UNPREDICTABLE;
For more information about the constrained unpredictable behavior, see Architectural Constraints on UNPREDICTABLE behaviors.
Related encodings: Branches and miscellaneous control.
<c> |
For encoding A1, T2 and T4: see Standard assembler syntax fields. |
For encoding T1: see Standard assembler syntax fields. Must not be AL or omitted. | |
For encoding T3: see Standard assembler syntax fields. <c> must not be AL or omitted. |
<q> |
if ConditionPassed() then EncodingSpecificOperations(); BranchWritePC(PC32 + imm32, BranchType_DIR);
Internal version only: isa v01_31, pseudocode v2024-03_rel ; Build timestamp: 2024-03-25T10:05
Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.