mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
7133857: exp() and pow() should use the x87 ISA on x86
Use x87 instructions to implement exp() and pow() in interpreter/c1/c2. Reviewed-by: kvn, never, twisti
This commit is contained in:
parent
eb4a860bc3
commit
b305cf722e
26 changed files with 783 additions and 279 deletions
|
@ -718,7 +718,7 @@ void LIR_Assembler::emit_op2(LIR_Op2* op) {
|
|||
if (op->in_opr2()->is_constant()) {
|
||||
shift_op(op->code(), op->in_opr1(), op->in_opr2()->as_constant_ptr()->as_jint(), op->result_opr());
|
||||
} else {
|
||||
shift_op(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op->tmp_opr());
|
||||
shift_op(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op->tmp1_opr());
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -746,6 +746,8 @@ void LIR_Assembler::emit_op2(LIR_Op2* op) {
|
|||
case lir_cos:
|
||||
case lir_log:
|
||||
case lir_log10:
|
||||
case lir_exp:
|
||||
case lir_pow:
|
||||
intrinsic_op(op->code(), op->in_opr1(), op->in_opr2(), op->result_opr(), op);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue