comparison src/hotspot/cpu/sparc/c1_LIRGenerator_sparc.cpp @ 57828:6c3d3494c4c5

Automatic merge with records-and-sealed
author mcimadamore
date Tue, 10 Sep 2019 23:06:21 +0000
parents bec342339138
children 08a5148e7c4e
comparison
equal deleted inserted replaced
6:e5986daa6c79 7:50854e532a48
282 282
283 283
284 bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, int c, LIR_Opr result, LIR_Opr tmp) { 284 bool LIRGenerator::strength_reduce_multiply(LIR_Opr left, int c, LIR_Opr result, LIR_Opr tmp) {
285 assert(left != result, "should be different registers"); 285 assert(left != result, "should be different registers");
286 if (is_power_of_2(c + 1)) { 286 if (is_power_of_2(c + 1)) {
287 __ shift_left(left, log2_intptr(c + 1), result); 287 __ shift_left(left, log2_int(c + 1), result);
288 __ sub(result, left, result); 288 __ sub(result, left, result);
289 return true; 289 return true;
290 } else if (is_power_of_2(c - 1)) { 290 } else if (is_power_of_2(c - 1)) {
291 __ shift_left(left, log2_intptr(c - 1), result); 291 __ shift_left(left, log2_int(c - 1), result);
292 __ add(result, left, result); 292 __ add(result, left, result);
293 return true; 293 return true;
294 } 294 }
295 return false; 295 return false;
296 } 296 }