A question about bytecodes
Stephen Dawkins
elfarto+hs at elfarto.com
Thu Jan 8 06:02:09 PST 2009
>>> I only raise this as even though unsigned integers can be implemented
>>> without going over the 256 code limit, I also want to try my hand at
>>> adding SSE primitives to Java, and that will certainly push it over.
>>>
>>
>> One of the benefits of using a two's-complement encoding for
>> integral types is that signed and unsigned add, subtract, and
>> multiply give the same bit-wise results. Therefore presumably only
>> conversion, divide, and comparison operations would be needed to
>> explicitly operate on unsigned data.
>
> You'd need to do loads as well unless you wanted to hack it with
> and'ing to get rid of any sign extension.
>
> tom
>
baload, saload, i2l, i2b, idiv, ldiv, irem, lrem, i2f, i2d, l2f, l2d
if_icmplt, if_icmpge, if_icmpgt, if_icmple, iflt, ifge, ifgt, ifle
I believe that's the complete list.
bipush, sipush and iinc are possible candidates, but can be achieved via
other methods.
Regards
Stephen
More information about the hotspot-dev
mailing list