Vector (and integer) API: unsigned min/max
John Rose
john.r.rose at oracle.com
Thu Apr 18 21:55:12 UTC 2024
On Apr 17, 2024, at 7:14 AM, David Lloyd <david.lloyd at redhat.com> wrote:
>
> 2. Add <IntType>.MIN_VALUE, min/max with a value or vector also offset by <IntType>.MIN_VALUE, and then subtract the offset again
I think that’s the path of least resistance. It’s just a vxor on each operand, with a constant mask. That can be done in Java code. CPU’s that implement native unsigned cmp can peephole optimize.
More information about the core-libs-dev
mailing list