Question 2: For the next couple of questions, use the following code:
OuterLoop:
InnerLoop:
BR2:
ADD X1, XZR, 4
ADD X2, XZR, 3
ADD X2, X2, -1
CBNZ X2, InnerLoop
ADD X1, X1, -1
CBNZ X1, OuterLoop
Calculate the prediction accuracy of a one-bit branch predictor for the BNE at BR1. Assume the predictor is initialized as taken (1). The answer should be formatted as a decimal, so 20% accuracy should be represented as 0.2. 30 pts