STM32F407 FPU clock cycles
I have been testing the performance of some maths functions on an STM32F407 CPU running at 168 MHz. From the documentation it is stated that the vmul.f32 (HW 32bit multiply instruction) should take 1 clock cycle to operate. Using my simple test program it looks like it is taking 2 clock cycles. The same test code implementing a "nop" or "add" (integer 32bit add) do appear to be taking 1 cycle so the test program looks ok, and the CPU's clock and FLASH configuration seems ok.
- Should the vmul.f32 take 1 clock cycle ?
- If so any ideas why it appears to be going slow in my case ?
I am using a GCC compiler with my own build environment which has been in use for many years.
