-
Type:
Task
-
Resolution: Duplicate
-
Priority:
P3
-
None
-
Affects Version/s: 24, 25, 26
-
Component/s: core-libs
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.
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.
- duplicates
-
JDK-8372978 [VectorAPI] Fix incorrect identity values in UMIN/UMAX reductions
-
- Open
-
-
JDK-8358767 [vectorapi] UMIN and UMAX reduction have incorrect identity value
-
- Closed
-