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

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

Issue 1457373002: [turbofan] Implemented the TruncateFloat64ToUint64 TurboFan operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed typos. 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
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-codes-arm64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 break; 993 break;
994 case kArm64Float64ToInt32: 994 case kArm64Float64ToInt32:
995 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); 995 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0));
996 break; 996 break;
997 case kArm64Float64ToUint32: 997 case kArm64Float64ToUint32:
998 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); 998 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0));
999 break; 999 break;
1000 case kArm64Float64ToInt64: 1000 case kArm64Float64ToInt64:
1001 __ Fcvtzs(i.OutputRegister64(), i.InputDoubleRegister(0)); 1001 __ Fcvtzs(i.OutputRegister64(), i.InputDoubleRegister(0));
1002 break; 1002 break;
1003 case kArm64Float64ToUint64:
1004 __ Fcvtzu(i.OutputRegister64(), i.InputDoubleRegister(0));
1005 break;
1003 case kArm64Int32ToFloat64: 1006 case kArm64Int32ToFloat64:
1004 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); 1007 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0));
1005 break; 1008 break;
1006 case kArm64Int64ToFloat32: 1009 case kArm64Int64ToFloat32:
1007 __ Scvtf(i.OutputDoubleRegister().S(), i.InputRegister64(0)); 1010 __ Scvtf(i.OutputDoubleRegister().S(), i.InputRegister64(0));
1008 break; 1011 break;
1009 case kArm64Int64ToFloat64: 1012 case kArm64Int64ToFloat64:
1010 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister64(0)); 1013 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister64(0));
1011 break; 1014 break;
1012 case kArm64Uint32ToFloat64: 1015 case kArm64Uint32ToFloat64:
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1529 padding_size -= kInstructionSize; 1532 padding_size -= kInstructionSize;
1530 } 1533 }
1531 } 1534 }
1532 } 1535 }
1533 1536
1534 #undef __ 1537 #undef __
1535 1538
1536 } // namespace compiler 1539 } // namespace compiler
1537 } // namespace internal 1540 } // namespace internal
1538 } // namespace v8 1541 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/instruction-codes-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698