Skip to content

Commit

Permalink
Update branch_manager.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ShinyMiraidon authored Mar 5, 2024
1 parent 71ec674 commit 8474d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dv/branch_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8474d2e

Please sign in to comment.