Branches
4-20
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
PC-relative offset is an 11-bit immediate value that must be a multiple of
two (bit 0 must be a 0). This gives an effective dynamic range of –1024 to
+1022 bytes.
For example, the following instruction tests the
CC
flag and, if it is posi-
tive, jumps to a location identified by the label
dest_address
:
IF CC JUMP dest_address ;
L
Take care when conditional branches are followed by load opera-
tions.
For more information, see “Load/Store Operation” on
page 6-66.
Conditional Register Move
Register moves can be performed depending on whether the value of the
CC
flag is true or false (1 or 0). In some cases, using this instruction instead
of a branch eliminates the cycles lost because of the branch. These condi-
tional moves can be done between any R- or P-registers (including
SP
and
FP
).
Example code:
IF CC R0 = P0 ;
Branch Prediction
The sequencer supports static branch prediction to accelerate execution of
conditional branches. These branches are executed based on the state of
the
CC
bit.
In the EX2 stage, the sequencer compares the actual
CC
bit value to the
predicted value. If the value was mispredicted, the branch is corrected, and
the correct address is available for the WB stage of the pipeline.
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...