Correlating Branch Predictors Consider the code: If (d = = 0) d = 1; If(d = = 1) The instruction sequence generated as follows: BNEZR1, L1;b1 (d != 0) ADDIR1, R0, #1;d = = 0 so d = 1 L1:SUBIR3, R1, #1 BNEZR3, L2;branch b2 (d != 1) L2: See Figures 4.26, 4.17, 4.18 and 4.19
{}