OpenJDK AArch64 c2 compiler generates:
0x0000ffffa0b4a858: mov x10, xzr
0x0000ffffa0b4a85c: sub x0, x10, x1 ;*lneg {reexecute=0 rethrow=0 return_oop=0}
to get a simple neg value.
It should use NEG instruction instead.
c1 uses neg instruction.
0x0000ffffa0b4a858: mov x10, xzr
0x0000ffffa0b4a85c: sub x0, x10, x1 ;*lneg {reexecute=0 rethrow=0 return_oop=0}
to get a simple neg value.
It should use NEG instruction instead.
c1 uses neg instruction.