diff --git a/dv/branch_manager.cpp b/dv/branch_manager.cpp index 60dd5819..93c52708 100644 --- a/dv/branch_manager.cpp +++ b/dv/branch_manager.cpp @@ -59,14 +59,14 @@ static void test() { init(bman); for(std::uint32_t pred_pc {0}; pred_pc < 128; ++pred_pc) for(std::uint32_t pred_addr {0}; pred_addr < 128; ++pred_addr) - for(int pred_taken {0}; pred_taken; ++pred_taken) + for(int pred_taken {0}; pred_taken < 2; ++pred_taken) for(int act_taken {0}; act_taken < 2; ++act_taken) eval(bman, pred_taken, act_taken, pred_pc, pred_addr); init(bman); for(std::uint32_t pred_pc {1}; pred_pc; pred_pc <<= 1) for(std::uint32_t pred_addr {1}; pred_addr; pred_addr <<=1) - for(int pred_taken {0}; pred_taken; ++pred_taken) + for(int pred_taken {0}; pred_taken < 2; ++pred_taken) for(int act_taken {0}; act_taken < 2; ++act_taken) eval(bman, pred_taken, act_taken, pred_pc, pred_addr); }