JDK-8373234 : [vectorapi] UMIN and UMAX reduction have incorrect identity value
  • Type: Task
  • Component: core-libs
  • Affected Version: 24,25,26
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2025-12-08
  • Updated: 2025-12-08
  • Resolved: 2025-12-08
Related Reports
Duplicate :  
Duplicate :  
Description
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.