Tool/software: TI C/C++ Compiler
Hi ,
I am facing a problem where if condition is not working properly when in the optimization enabled but same code works fine in the optimization is off.
for (k_index = 0; k_index < m_size1; k_index++) {
s_float = Array[k_index][0];
for (l_index = 1; l_index < n_size2; l_index++)
{
if ( Array[k_index][l_index] < s_float)
{
s_float = Array[k_index][l_index];
}
}
}
in the above if ( Array[k_index][l_index] < s_float) is not working properly , Array[k_index][l_index] is greater than s_float , still it is saying Array[k_index][l_index] smaller than s_float.
Regards
R D Nadaf