Commit ba61ce5b authored by bjaideep's avatar bjaideep Committed by Commit bot

PPC/s390: [builtins] Unify Cosh, Sinh and Tanh as exports from flibm

Port cede9ce5

R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com

BUG=v8:5086
LOG=N

Review-Url: https://codereview.chromium.org/2113193002
Cr-Commit-Position: refs/heads/master@{#37465}
parent 8834d5ec
...@@ -1277,9 +1277,15 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( ...@@ -1277,9 +1277,15 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
case kIeee754Float64Sin: case kIeee754Float64Sin:
ASSEMBLE_IEEE754_UNOP(sin); ASSEMBLE_IEEE754_UNOP(sin);
break; break;
case kIeee754Float64Sinh:
ASSEMBLE_IEEE754_UNOP(sinh);
break;
case kIeee754Float64Cos: case kIeee754Float64Cos:
ASSEMBLE_IEEE754_UNOP(cos); ASSEMBLE_IEEE754_UNOP(cos);
break; break;
case kIeee754Float64Cosh:
ASSEMBLE_IEEE754_UNOP(cosh);
break;
case kIeee754Float64Exp: case kIeee754Float64Exp:
ASSEMBLE_IEEE754_UNOP(exp); ASSEMBLE_IEEE754_UNOP(exp);
break; break;
...@@ -1289,6 +1295,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( ...@@ -1289,6 +1295,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
case kIeee754Float64Atanh: case kIeee754Float64Atanh:
ASSEMBLE_IEEE754_UNOP(atanh); ASSEMBLE_IEEE754_UNOP(atanh);
break; break;
case kIeee754Float64Tanh:
ASSEMBLE_IEEE754_UNOP(tanh);
break;
case kIeee754Float64Log: case kIeee754Float64Log:
ASSEMBLE_IEEE754_UNOP(log); ASSEMBLE_IEEE754_UNOP(log);
break; break;
......
...@@ -1261,9 +1261,15 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( ...@@ -1261,9 +1261,15 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
case kIeee754Float64Sin: case kIeee754Float64Sin:
ASSEMBLE_IEEE754_UNOP(sin); ASSEMBLE_IEEE754_UNOP(sin);
break; break;
case kIeee754Float64Sinh:
ASSEMBLE_IEEE754_UNOP(sinh);
break;
case kIeee754Float64Cos: case kIeee754Float64Cos:
ASSEMBLE_IEEE754_UNOP(cos); ASSEMBLE_IEEE754_UNOP(cos);
break; break;
case kIeee754Float64Cosh:
ASSEMBLE_IEEE754_UNOP(cosh);
break;
case kIeee754Float64Exp: case kIeee754Float64Exp:
ASSEMBLE_IEEE754_UNOP(exp); ASSEMBLE_IEEE754_UNOP(exp);
break; break;
...@@ -1273,6 +1279,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction( ...@@ -1273,6 +1279,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
case kIeee754Float64Atanh: case kIeee754Float64Atanh:
ASSEMBLE_IEEE754_UNOP(atanh); ASSEMBLE_IEEE754_UNOP(atanh);
break; break;
case kIeee754Float64Tanh:
ASSEMBLE_IEEE754_UNOP(tanh);
break;
case kIeee754Float64Log: case kIeee754Float64Log:
ASSEMBLE_IEEE754_UNOP(log); ASSEMBLE_IEEE754_UNOP(log);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment