US 12,217,059 B1
Systems and methods for programmed branch predictors
Alexander Toufic Freij, Austin, TX (US); Gabriel H. Loh, Bellevue, WA (US); and Onur Kayiran, Fairpoint, NY (US)
Assigned to Advanced Micro Devices, Inc., Santa Clara, CA (US)
Filed by Advanced Micro Devices, Inc., Santa Clara, CA (US)
Filed on Mar. 30, 2023, as Appl. No. 18/193,177.
Int. Cl. G06F 9/38 (2018.01); G06F 9/30 (2018.01)
CPC G06F 9/30065 (2013.01) [G06F 9/3016 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A device comprising:
a controller configured to:
set an iteration counter for a loop based on an iteration value read from a loop iteration instruction corresponding to the loop;
update the iteration counter based on a number of times a loop heading instruction corresponding to the loop is decoded; and
select, in response to the iteration counter reaching an end value, a not taken identifier for the loop to be fetched.