comparison src/cpu/x86/vm/interpreter_x86_64.cpp @ 6084:6759698e3140

7133857: exp() and pow() should use the x87 ISA on x86 Summary: use x87 instructions to implement exp() and pow() in interpreter/c1/c2. Reviewed-by: kvn, never, twisti
author roland
date Tue, 15 May 2012 10:10:23 +0200
parents 3d2ab563047a
children 1d7922586cf6
comparison
equal deleted inserted replaced
6057:8f972594effc 6084:6759698e3140
269 __ flog(); 269 __ flog();
270 break; 270 break;
271 case Interpreter::java_lang_math_log10: 271 case Interpreter::java_lang_math_log10:
272 __ flog10(); 272 __ flog10();
273 break; 273 break;
274 case Interpreter::java_lang_math_pow:
275 __ fld_d(Address(rsp, 3*wordSize)); // second argument (one
276 // empty stack slot)
277 __ pow_with_fallback(0);
278 break;
279 case Interpreter::java_lang_math_exp:
280 __ exp_with_fallback(0);
281 break;
274 default : 282 default :
275 ShouldNotReachHere(); 283 ShouldNotReachHere();
276 } 284 }
277 285
278 // return double result in xmm0 for interpreter and compilers. 286 // return double result in xmm0 for interpreter and compilers.