Why is floor() only compiled to roundsd when using -funsafe-math-optimizations?

2015-01-26 Thread Fredrik Tolf
the roundsd is IEEE-compliant and safe. Why does GCC consider it unsafe? For reference, these are the complete compile commands I'm using to test: gcc -O -march=haswell -c -S -o test.s test.c vs. gcc -O -funsafe-math-optimizations -march=haswell -c -S -o test.s test.c -- Fredrik Tolf

Error message source line display

2013-10-12 Thread Fredrik Tolf
community would prefer, however. Thanks for reading! -- Fredrik Tolf