Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 1440293002: [turbofan] Added the optional Float64RoundTiesEven operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f64roundup
Patch Set: Disabled F64RoundTiesEven on mips32 Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 __ Str(value, MemOperand(object, index)); 590 __ Str(value, MemOperand(object, index));
591 __ CheckPageFlagSet(object, scratch0, 591 __ CheckPageFlagSet(object, scratch0,
592 MemoryChunk::kPointersFromHereAreInterestingMask, 592 MemoryChunk::kPointersFromHereAreInterestingMask,
593 ool->entry()); 593 ool->entry());
594 __ Bind(ool->exit()); 594 __ Bind(ool->exit());
595 break; 595 break;
596 } 596 }
597 case kArm64Float64RoundDown: 597 case kArm64Float64RoundDown:
598 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 598 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
599 break; 599 break;
600 case kArm64Float64RoundUp:
601 __ Frintp(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
602 break;
600 case kArm64Float64RoundTiesAway: 603 case kArm64Float64RoundTiesAway:
601 __ Frinta(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 604 __ Frinta(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
602 break; 605 break;
603 case kArm64Float64RoundTruncate: 606 case kArm64Float64RoundTruncate:
604 __ Frintz(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 607 __ Frintz(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
605 break; 608 break;
606 case kArm64Float64RoundUp: 609 case kArm64Float64RoundTiesEven:
607 __ Frintp(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 610 __ Frintn(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
608 break; 611 break;
609 case kArm64Add: 612 case kArm64Add:
610 __ Add(i.OutputRegister(), i.InputOrZeroRegister64(0), 613 __ Add(i.OutputRegister(), i.InputOrZeroRegister64(0),
611 i.InputOperand2_64(1)); 614 i.InputOperand2_64(1));
612 break; 615 break;
613 case kArm64Add32: 616 case kArm64Add32:
614 if (FlagsModeField::decode(opcode) != kFlags_none) { 617 if (FlagsModeField::decode(opcode) != kFlags_none) {
615 __ Adds(i.OutputRegister32(), i.InputOrZeroRegister32(0), 618 __ Adds(i.OutputRegister32(), i.InputOrZeroRegister32(0),
616 i.InputOperand2_32(1)); 619 i.InputOperand2_32(1));
617 } else { 620 } else {
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 padding_size -= kInstructionSize; 1514 padding_size -= kInstructionSize;
1512 } 1515 }
1513 } 1516 }
1514 } 1517 }
1515 1518
1516 #undef __ 1519 #undef __
1517 1520
1518 } // namespace compiler 1521 } // namespace compiler
1519 } // namespace internal 1522 } // namespace internal
1520 } // namespace v8 1523 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/arm64/instruction-codes-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698