--- old/src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp 2018-07-11 17:41:36.083788683 +0300 +++ new/src/hotspot/cpu/aarch64/macroAssembler_aarch64.hpp 2018-07-11 17:41:35.883775876 +0300 @@ -180,8 +180,9 @@ template inline void cmpw(Register Rd, T imm) { subsw(zr, Rd, imm); } - // imm is limited to 12 bits. - inline void cmp(Register Rd, unsigned imm) { subs(zr, Rd, imm); } + + inline void cmp(Register Rd, unsigned char imm8) { subs(zr, Rd, imm8); } + inline void cmp(Register Rd, unsigned imm) __attribute__ ((deprecated)); inline void cmnw(Register Rd, unsigned imm) { addsw(zr, Rd, imm); } inline void cmn(Register Rd, unsigned imm) { adds(zr, Rd, imm); }