A strange bit of code in MacroAssembler::multiply_128_x_128_loop

Andrew Haley aph at redhat.com
Fri Apr 10 15:06:14 UTC 2015


This is for x86:

  addl (idx, 0x2);
  andl (idx, 0x1);
  subl(idx, 1);
  jcc(Assembler::negative, L_post_third_loop_done);

I'm trying to guess what the "addl (idx, 0x2)" instruction was supposed to do.
I don't think it has any effect now.

Andrew.


More information about the hotspot-runtime-dev mailing list