Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8358767

[vectorapi] UMIN and UMAX reduction have incorrect identity value

XMLWordPrintable

      The code in question:

      case VECTOR_OP_UMIN: return (v, m) -> toBits(v.rOp(MAX_OR_INF, m, (i, a, b) -> (int) VectorMath.minUnsigned(a, b)));

      Unfortunately, we are sloppy here, the identity value for UMIN should be -1 (MAX_UINT). I wonder why the tests do not catch it.

            igraves Ian Graves
            qmai Quan Anh Mai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: