Commit 0b94c998 authored by zhengxing.li's avatar zhengxing.li Committed by Commit bot

X87: [turbofan] Added the optional Float64RoundUp operator to turbofan.

  port 1389b9f5 (r32004)

  original commit message:
  I implemented it on x64, ia32, arm, arm64, mips, mips64, and ppc.

BUG=

Review URL: https://codereview.chromium.org/1488993002

Cr-Commit-Position: refs/heads/master@{#32484}
parent 564a2086
......@@ -855,7 +855,11 @@ void InstructionSelector::VisitFloat64RoundDown(Node* node) {
void InstructionSelector::VisitFloat32RoundUp(Node* node) { UNREACHABLE(); }
void InstructionSelector::VisitFloat64RoundUp(Node* node) { UNREACHABLE(); }
void InstructionSelector::VisitFloat64RoundUp(Node* node) {
X87OperandGenerator g(this);
Emit(kX87Float64Round | MiscField::encode(kRoundUp), g.UseFixed(node, stX_0),
g.Use(node->InputAt(0)));
}
void InstructionSelector::VisitFloat32RoundTruncate(Node* node) {
......@@ -1302,6 +1306,7 @@ InstructionSelector::SupportedMachineOperatorFlags() {
}
flags |= MachineOperatorBuilder::kFloat64RoundDown |
MachineOperatorBuilder::kFloat64RoundUp |
MachineOperatorBuilder::kFloat64RoundTruncate;
return flags;
}
......
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