Program

for (int i = 0; true; ++i) {
if (i % 2 == 0) {} if (i % 4 == 0) {}
}

Branch Predictor

i = 0


for iterations


Parameters:
M = (entries per table)
N = (bits per entry)
P = (shift register size)

Predictor:
SR = 0

PC:
Last prediction:

Accuracy

Total branches =
Correct predictions =
Accuracy =