[lno] [RFC] if-conversion and auto vectorizer

Robert Dewar dewar@gnat.com
Mon Mar 15 22:42:00 GMT 2004


> (1) MIN/MAX have better floating-point properties than conditional move.
>     Consider 
> 
>         a = 0; b = NaN;
> 
>         c = a < b ? b : a;              // 0
>     vs
>         c = a > b ? a : b;              // NaN
>     vs
>         c = max(a, b);                  // Undefined

Does the C standard really specify that the < and > here are unordered
comparisons? 



More information about the Gcc mailing list