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

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

Issue 1424333002: [turbofan] Added the RoundInt64ToFloat64 instruction to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@BufferedRawMachineAssemblerTester
Patch Set: Fixed the type of RoundInt64ToFloat64 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 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 break; 905 break;
906 case kArm64Float64ToInt32: 906 case kArm64Float64ToInt32:
907 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); 907 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0));
908 break; 908 break;
909 case kArm64Float64ToUint32: 909 case kArm64Float64ToUint32:
910 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); 910 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0));
911 break; 911 break;
912 case kArm64Int32ToFloat64: 912 case kArm64Int32ToFloat64:
913 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); 913 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister32(0));
914 break; 914 break;
915 case kArm64Int64ToFloat64:
916 __ Scvtf(i.OutputDoubleRegister(), i.InputRegister64(0));
917 break;
915 case kArm64Uint32ToFloat64: 918 case kArm64Uint32ToFloat64:
916 __ Ucvtf(i.OutputDoubleRegister(), i.InputRegister32(0)); 919 __ Ucvtf(i.OutputDoubleRegister(), i.InputRegister32(0));
917 break; 920 break;
918 case kArm64Float64ExtractLowWord32: 921 case kArm64Float64ExtractLowWord32:
919 __ Fmov(i.OutputRegister32(), i.InputFloat32Register(0)); 922 __ Fmov(i.OutputRegister32(), i.InputFloat32Register(0));
920 break; 923 break;
921 case kArm64Float64ExtractHighWord32: 924 case kArm64Float64ExtractHighWord32:
922 // TODO(arm64): This should use MOV (to general) when NEON is supported. 925 // TODO(arm64): This should use MOV (to general) when NEON is supported.
923 __ Fmov(i.OutputRegister(), i.InputFloat64Register(0)); 926 __ Fmov(i.OutputRegister(), i.InputFloat64Register(0));
924 __ Lsr(i.OutputRegister(), i.OutputRegister(), 32); 927 __ Lsr(i.OutputRegister(), i.OutputRegister(), 32);
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 padding_size -= kInstructionSize; 1460 padding_size -= kInstructionSize;
1458 } 1461 }
1459 } 1462 }
1460 } 1463 }
1461 1464
1462 #undef __ 1465 #undef __
1463 1466
1464 } // namespace compiler 1467 } // namespace compiler
1465 } // namespace internal 1468 } // namespace internal
1466 } // namespace v8 1469 } // 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