R600: Fix min/max matching problems with unordered compares