Division by zero exception flag not set in STM32H7 FPU
I'm digging into the FPU of a STM32H743 (Nucleo board, Keil IDE).
I've checked that the FPU is enabled in register CPACR.
I've compiled the following dumb code:
volatile double test = 0;
test = 1.0 / test;If I look at the assembly I've got:
VDIV.F64 d0,d1,d0where d1 contains the double representation for 1, d0 contains the double representation for 0.
After the instruction d0 contains
0x7F00...00
which is a representation for infinity, so the result is consistent.
However the flag DZC in register FPSCR is not set, as I was expecting it would be.
Am I missing something ?