X87: [builtins] Unify Cosh, Sinh and Tanh as exports from flibm.

port cede9ce5e1 (r37424)

  original commit message:

BUG=

Review-Url: https://codereview.chromium.org/2118133002
Cr-Commit-Position: refs/heads/master@{#37491}
This commit is contained in:
zhengxing.li 2016-07-03 23:24:27 -07:00 committed by Commit bot
parent f50725d3ba
commit c43d5ddeba

View File

@ -762,6 +762,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
ASSEMBLE_IEEE754_UNOP(cos); ASSEMBLE_IEEE754_UNOP(cos);
__ X87SetFPUCW(0x037F); __ X87SetFPUCW(0x037F);
break; break;
case kIeee754Float64Cosh:
ASSEMBLE_IEEE754_UNOP(cosh);
break;
case kIeee754Float64Expm1: case kIeee754Float64Expm1:
__ X87SetFPUCW(0x027F); __ X87SetFPUCW(0x027F);
ASSEMBLE_IEEE754_UNOP(expm1); ASSEMBLE_IEEE754_UNOP(expm1);
@ -800,11 +803,17 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
ASSEMBLE_IEEE754_UNOP(sin); ASSEMBLE_IEEE754_UNOP(sin);
__ X87SetFPUCW(0x037F); __ X87SetFPUCW(0x037F);
break; break;
case kIeee754Float64Sinh:
ASSEMBLE_IEEE754_UNOP(sinh);
break;
case kIeee754Float64Tan: case kIeee754Float64Tan:
__ X87SetFPUCW(0x027F); __ X87SetFPUCW(0x027F);
ASSEMBLE_IEEE754_UNOP(tan); ASSEMBLE_IEEE754_UNOP(tan);
__ X87SetFPUCW(0x037F); __ X87SetFPUCW(0x037F);
break; break;
case kIeee754Float64Tanh:
ASSEMBLE_IEEE754_UNOP(tanh);
break;
case kX87Add: case kX87Add:
if (HasImmediateInput(instr, 1)) { if (HasImmediateInput(instr, 1)) {
__ add(i.InputOperand(0), i.InputImmediate(1)); __ add(i.InputOperand(0), i.InputImmediate(1));