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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.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
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/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 break; 1081 break;
1082 case kArm64Float64ToFloat32: 1082 case kArm64Float64ToFloat32:
1083 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0)); 1083 __ Fcvt(i.OutputDoubleRegister().S(), i.InputDoubleRegister(0));
1084 break; 1084 break;
1085 case kArm64Float32ToInt32: 1085 case kArm64Float32ToInt32:
1086 __ Fcvtzs(i.OutputRegister32(), i.InputFloat32Register(0)); 1086 __ Fcvtzs(i.OutputRegister32(), i.InputFloat32Register(0));
1087 break; 1087 break;
1088 case kArm64Float64ToInt32: 1088 case kArm64Float64ToInt32:
1089 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0)); 1089 __ Fcvtzs(i.OutputRegister32(), i.InputDoubleRegister(0));
1090 break; 1090 break;
1091 case kArm64Float32ToUint32:
1092 __ Fcvtzu(i.OutputRegister32(), i.InputFloat32Register(0));
1093 break;
1091 case kArm64Float64ToUint32: 1094 case kArm64Float64ToUint32:
1092 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0)); 1095 __ Fcvtzu(i.OutputRegister32(), i.InputDoubleRegister(0));
1093 break; 1096 break;
1094 case kArm64Float32ToInt64: 1097 case kArm64Float32ToInt64:
1095 __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0)); 1098 __ Fcvtzs(i.OutputRegister64(), i.InputFloat32Register(0));
1096 if (i.OutputCount() > 1) { 1099 if (i.OutputCount() > 1) {
1097 __ Mov(i.OutputRegister(1), 1); 1100 __ Mov(i.OutputRegister(1), 1);
1098 Label done; 1101 Label done;
1099 __ Cmp(i.OutputRegister(0), 1); 1102 __ Cmp(i.OutputRegister(0), 1);
1100 __ Ccmp(i.OutputRegister(0), -1, VFlag, vc); 1103 __ Ccmp(i.OutputRegister(0), -1, VFlag, vc);
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 padding_size -= kInstructionSize; 1690 padding_size -= kInstructionSize;
1688 } 1691 }
1689 } 1692 }
1690 } 1693 }
1691 1694
1692 #undef __ 1695 #undef __
1693 1696
1694 } // namespace compiler 1697 } // namespace compiler
1695 } // namespace internal 1698 } // namespace internal
1696 } // namespace v8 1699 } // 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