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

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

Issue 1589363002: [turbofan] Add the RoundInt32ToFloat32 operator to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months 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/arm/instruction-codes-arm.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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 case kArmVcvtF32F64: { 824 case kArmVcvtF32F64: {
825 __ vcvt_f32_f64(i.OutputFloat32Register(), i.InputFloat64Register(0)); 825 __ vcvt_f32_f64(i.OutputFloat32Register(), i.InputFloat64Register(0));
826 DCHECK_EQ(LeaveCC, i.OutputSBit()); 826 DCHECK_EQ(LeaveCC, i.OutputSBit());
827 break; 827 break;
828 } 828 }
829 case kArmVcvtF64F32: { 829 case kArmVcvtF64F32: {
830 __ vcvt_f64_f32(i.OutputFloat64Register(), i.InputFloat32Register(0)); 830 __ vcvt_f64_f32(i.OutputFloat64Register(), i.InputFloat32Register(0));
831 DCHECK_EQ(LeaveCC, i.OutputSBit()); 831 DCHECK_EQ(LeaveCC, i.OutputSBit());
832 break; 832 break;
833 } 833 }
834 case kArmVcvtF32S32: {
835 SwVfpRegister scratch = kScratchDoubleReg.low();
836 __ vmov(scratch, i.InputRegister(0));
837 __ vcvt_f32_s32(i.OutputFloat32Register(), scratch);
838 DCHECK_EQ(LeaveCC, i.OutputSBit());
839 break;
840 }
834 case kArmVcvtF64S32: { 841 case kArmVcvtF64S32: {
835 SwVfpRegister scratch = kScratchDoubleReg.low(); 842 SwVfpRegister scratch = kScratchDoubleReg.low();
836 __ vmov(scratch, i.InputRegister(0)); 843 __ vmov(scratch, i.InputRegister(0));
837 __ vcvt_f64_s32(i.OutputFloat64Register(), scratch); 844 __ vcvt_f64_s32(i.OutputFloat64Register(), scratch);
838 DCHECK_EQ(LeaveCC, i.OutputSBit()); 845 DCHECK_EQ(LeaveCC, i.OutputSBit());
839 break; 846 break;
840 } 847 }
841 case kArmVcvtF64U32: { 848 case kArmVcvtF64U32: {
842 SwVfpRegister scratch = kScratchDoubleReg.low(); 849 SwVfpRegister scratch = kScratchDoubleReg.low();
843 __ vmov(scratch, i.InputRegister(0)); 850 __ vmov(scratch, i.InputRegister(0));
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 padding_size -= v8::internal::Assembler::kInstrSize; 1384 padding_size -= v8::internal::Assembler::kInstrSize;
1378 } 1385 }
1379 } 1386 }
1380 } 1387 }
1381 1388
1382 #undef __ 1389 #undef __
1383 1390
1384 } // namespace compiler 1391 } // namespace compiler
1385 } // namespace internal 1392 } // namespace internal
1386 } // namespace v8 1393 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698