taken bge followed by div takes 36 cycles
Created by: GTumbush
Component:RTL:
For specific combinations of bge followed by div the flush of the div takes 36 clock cycles. The branch is taken. Other combinations of branch/div/mul/rem and operands may reproduce this issue. I will enumerate a few below.
Steps to Reproduce
- git hash: 2fe68a93c27db0bb514d567f79d3ba54045b51f6
- git clone -b add_riscv_rand_instr_test_0 https://github.com/GTumbush/core-v-verif
- cd cv32/sim/uvmt_cv32
- make custom CUSTOM_PROG=riscv_branch_div
For:
bge a2, zero, fast_exit
div a3, a6, a6