We have a two processor system comprised of one MSP430AFE253 and one MSP430F5529. We are currently using CCS v4 for both, we haven't upgraded to v5 yet because of issues with using it with the 253.
I haven't been able to find a definite answer regarding the use of the MPY when doing floating point math. Some posts here on e2e imply that the compiler will use it as necessary, others state that the user must create their own functions (i.e. http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/150393.aspx#543962).
As in the link above, we would like to implement a 4th order polynomial. The MPY code examples for the 253 do not have a floating point example, and I haven't been able to find any code examples for the 5529.
I wrote a few functions that perform floating point math for the 5529 so I could look at the disassembly. I see calls to functions such as __fs_mpy, but I cannot find any documentation on this or other functions. One such function is as follows, which I copied from the link above:
void float_2( void ) { volatile FLOAT x; volatile FLOAT y; x = 6.104f; y = (((((((0.047738f * x) - 0.87359f) * x) + 5.9017f) * x) - 19.269f) * x) + 28.616f; }
Will the compiler automatically use the MPY when necessary?
Thank you.