From 0aba89442c484d371ff5c290f8b6955a432d3dd7 Mon Sep 17 00:00:00 2001 From: Igor Veresov Date: Sat, 11 Sep 2010 15:21:37 -0700 Subject: [PATCH] 6984056: C1: incorrect code for integer constant addition on x64 Fix add/sub of constants to ints on x64 Reviewed-by: kvn --- hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp b/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp index 5f6c7b3a3d6..43641dbde80 100644 --- a/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp +++ b/hotspot/src/cpu/x86/vm/c1_LIRAssembler_x86.cpp @@ -2066,11 +2066,11 @@ void LIR_Assembler::arith_op(LIR_Code code, LIR_Opr left, LIR_Opr right, LIR_Opr jint c = right->as_constant_ptr()->as_jint(); switch (code) { case lir_add: { - __ increment(lreg, c); + __ incrementl(lreg, c); break; } case lir_sub: { - __ decrement(lreg, c); + __ decrementl(lreg, c); break; } default: ShouldNotReachHere();