Part Number: C6000-CGT
Hello TI!
We have been testing the CGT C6000 8.3.9 compiler version for couple of days now and it looks like we have found an issue.
Bellow is a code snippet of custom cosinus function that seems to return negative value instead of a positive.
Worth mentioning is that this code worked on CGT C6000 8.3.8 and it also works when build with compiler option -g instead of
-O3 --opt_for_speed=4 -DNDEBUG --symdebug:none .
I have successfully build a compiler test case and will submit it through a private channel ones I get a reply here.
Regards,
Enver
int main(int argc, char* argv[])
{
//GIVEN
const double ins = -100.0;
const float expected32 = 0.86231887F;
float floatOut;
// WHEN
floatOut = se::se_cos(static_cast<float>(ins));
// THEN
std::cout << floatOut << "\n";
assert(floatOut == expected32);
return 0;
}