Solved
How can we check that the compiler use ASR and not LSR?
Below is a copy of a warning found within the PID-controller of MC-SDK 5.Y.4.
We have a Cortext-M4 based board so I guess the warning text is a copy-paste and I should not care that it mentions Cortex-M3..
/* WARNING: the below instruction is not MISRA compliant, user should verify
that Cortex-M3 assembly instruction ASR (arithmetic shift right)
is used by the compiler to perform the shifts (instead of LSR
logical shift right)*/
//cstat !MISRAC2012-Rule-1.3_n !ATH-shift-neg !MISRAC2012-Rule-10.1_R6How can we check if the compiler uses ASR and not LSR in these situations?
