issue with fmaf function
Hallo,
I used in my app fmaf function and I found it doesn't behave as expected:
y = fmaf(a1,a2,a3) should be y = a1*a2 + a3
but I got as result y = a1*a2 without additive term.
Of course I can and use "classic" expresion instead this functions.
Is this a bug or maybe I misunderstood something?
I'm using STM32CubeIDE 1.13.2, and STM32F401ceu...
Greg
Below is also dissasembled piece of code:
137 q = fmaf(0.98564736f, D, 280.459f);
080014ea: vldr s2, [pc, #200] ; 0x80015b4 <Sun_Longitude_Deg+332>
080014ee: vldr s1, [r7, #4]
080014f2: vldr s0, [pc, #188] ; 0x80015b0 <Sun_Longitude_Deg+328>
080014f6: bl 0x800c8d0 <fmaf>
fmaf:
0800c8d0: vfma.f32 s0, s0, s1
0800c8d4: bx lr
0800c8d6: movs r0, r0
__ieee754_atan2: