Question: The following code is executed by an ARM processor: Assume that a 1-bit branch predictor is used for both branch 1 and branch 2 and
The following code is executed by an ARM processor:

Assume that a 1-bit branch predictor is used for both branch 1 and branch 2 and that both predictors are initially set to N. Complete the following table by running through this code.

Repeat the same exercise with the same initial conditions but assume a 2-bit saturating counter branch predictor.
B1 B2 MOV MOV SUB SUBS BNE B2 SUBS r0, r0, #1 BNE B1 r0, #4 r2, #5 r2, r2, ro r2, r2, #1 ;Branch 1 ;Branch 2
Step by Step Solution
3.39 Rating (155 Votes )
There are 3 Steps involved in it
Branch 1 Cycle Branch prediction Branc... View full answer
Get step-by-step solutions from verified subject matter experts
