News for hackers. Stuff that matters.
Re:GCC optimized code gives strange floating point results by thechao on Sunday February 26, 2017 @03:25PM (#13739623)
Part of my day job is to test floating point hardware and write compilers and assemblers. Testing equality---with some care---is completely fine. I can assure you this is a bug in GCC. The GCC bug is compounded by the nonstandard behavior of x87. The x87 unit is not "fixable" but GCC's behavior is.
Re:GCC optimized code gives strange floating point results by nurettin on Monday February 27, 2017 @12:05AM (#13742019)
That's interesting, you make it sound like the production of new FPUs and new compilers is common. Which industry do you work in?