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

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

Issue 1627263002: [turbofan] Add TruncateFloat32ToUint32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Andreas' comment Created 4 years, 10 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 | « src/arm/assembler-arm.cc ('k') | 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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 DCHECK_EQ(LeaveCC, i.OutputSBit()); 852 DCHECK_EQ(LeaveCC, i.OutputSBit());
853 break; 853 break;
854 } 854 }
855 case kArmVcvtS32F32: { 855 case kArmVcvtS32F32: {
856 SwVfpRegister scratch = kScratchDoubleReg.low(); 856 SwVfpRegister scratch = kScratchDoubleReg.low();
857 __ vcvt_s32_f32(scratch, i.InputFloat32Register(0)); 857 __ vcvt_s32_f32(scratch, i.InputFloat32Register(0));
858 __ vmov(i.OutputRegister(), scratch); 858 __ vmov(i.OutputRegister(), scratch);
859 DCHECK_EQ(LeaveCC, i.OutputSBit()); 859 DCHECK_EQ(LeaveCC, i.OutputSBit());
860 break; 860 break;
861 } 861 }
862 case kArmVcvtU32F32: {
863 SwVfpRegister scratch = kScratchDoubleReg.low();
864 __ vcvt_u32_f32(scratch, i.InputFloat32Register(0));
865 __ vmov(i.OutputRegister(), scratch);
866 DCHECK_EQ(LeaveCC, i.OutputSBit());
867 break;
868 }
862 case kArmVcvtS32F64: { 869 case kArmVcvtS32F64: {
863 SwVfpRegister scratch = kScratchDoubleReg.low(); 870 SwVfpRegister scratch = kScratchDoubleReg.low();
864 __ vcvt_s32_f64(scratch, i.InputFloat64Register(0)); 871 __ vcvt_s32_f64(scratch, i.InputFloat64Register(0));
865 __ vmov(i.OutputRegister(), scratch); 872 __ vmov(i.OutputRegister(), scratch);
866 DCHECK_EQ(LeaveCC, i.OutputSBit()); 873 DCHECK_EQ(LeaveCC, i.OutputSBit());
867 break; 874 break;
868 } 875 }
869 case kArmVcvtU32F64: { 876 case kArmVcvtU32F64: {
870 SwVfpRegister scratch = kScratchDoubleReg.low(); 877 SwVfpRegister scratch = kScratchDoubleReg.low();
871 __ vcvt_u32_f64(scratch, i.InputFloat64Register(0)); 878 __ vcvt_u32_f64(scratch, i.InputFloat64Register(0));
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 padding_size -= v8::internal::Assembler::kInstrSize; 1398 padding_size -= v8::internal::Assembler::kInstrSize;
1392 } 1399 }
1393 } 1400 }
1394 } 1401 }
1395 1402
1396 #undef __ 1403 #undef __
1397 1404
1398 } // namespace compiler 1405 } // namespace compiler
1399 } // namespace internal 1406 } // namespace internal
1400 } // namespace v8 1407 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698