https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91232
--- Comment #2 from bharath appali <bharath.appali at gmail dot com> --- Thanks @ Andrew Pinski, will try that. I tried adding `__attribute__((noinline))` to the function `getMostSignificantBit` which solved the problem.