https://gcc.godbolt.org/z/YhrEcb7nz
Am I correct assuming that fmadd and vmul/vadd versions might not give me the exact same results (down in Test)? (Double checking.. )
... thanks for confirmations.. Practice agrees as well and sometimes the sort will explode :) (this was a copy-pasted bit of some of the <algorithm> sort code)
@msinilo is fp:fast generally worth the trouble it causes? It could lead to even simpler cases like compiler turning (a+b)+c into a+(b+c) which is not the same. And yeah, sorting predicates can and will go wrong with things like that.