On 02/04/2020 15:55, Kwok Cheung Yeung wrote:
Hello

This patch adds support for the unordered floating-point comparison operators (UNEQ, UNGE, UNGT, UNLE, UNLT), which return true if one of the operands is a NaN. These comparisons can be generated by builtins such as __builtin_isgreater.

GCC 10 appears to have a fall-back if the unordered comparisons are not available (by generating an unordered comparison first, followed by the main comparison), whereas previous versions would simply throw an ICE. Still, it should be a little more efficient to have direct support for these operators.

Tested on a GCN3 board with no regressions noted. Okay for trunk?

OK, thanks.

Andrew

Reply via email to