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

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

Issue 1474963002: [turbofan] Implemented the optional Float32RoundUp operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@f32rounddown
Patch Set: Created 5 years 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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 ool->entry()); 622 ool->entry());
623 __ Bind(ool->exit()); 623 __ Bind(ool->exit());
624 break; 624 break;
625 } 625 }
626 case kArm64Float32RoundDown: 626 case kArm64Float32RoundDown:
627 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0)); 627 __ Frintm(i.OutputFloat32Register(), i.InputFloat32Register(0));
628 break; 628 break;
629 case kArm64Float64RoundDown: 629 case kArm64Float64RoundDown:
630 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 630 __ Frintm(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
631 break; 631 break;
632 case kArm64Float32RoundUp:
633 __ Frintp(i.OutputFloat32Register(), i.InputFloat32Register(0));
634 break;
632 case kArm64Float64RoundUp: 635 case kArm64Float64RoundUp:
633 __ Frintp(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 636 __ Frintp(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
634 break; 637 break;
635 case kArm64Float64RoundTiesAway: 638 case kArm64Float64RoundTiesAway:
636 __ Frinta(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 639 __ Frinta(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
637 break; 640 break;
638 case kArm64Float64RoundTruncate: 641 case kArm64Float64RoundTruncate:
639 __ Frintz(i.OutputDoubleRegister(), i.InputDoubleRegister(0)); 642 __ Frintz(i.OutputDoubleRegister(), i.InputDoubleRegister(0));
640 break; 643 break;
641 case kArm64Float64RoundTiesEven: 644 case kArm64Float64RoundTiesEven:
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 padding_size -= kInstructionSize; 1552 padding_size -= kInstructionSize;
1550 } 1553 }
1551 } 1554 }
1552 } 1555 }
1553 1556
1554 #undef __ 1557 #undef __
1555 1558
1556 } // namespace compiler 1559 } // namespace compiler
1557 } // namespace internal 1560 } // namespace internal
1558 } // namespace v8 1561 } // 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