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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 1435603003: Implemented the RoundInt64ToFloat32 TurboFan operator for x64, arm64, and mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/x64/assembler-x64.h ('k') | src/x64/disasm-x64.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/x64/assembler-x64.h" 5 #include "src/x64/assembler-x64.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 3147 matching lines...) Expand 10 before | Expand all | Expand 10 after
3158 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) { 3158 void Assembler::cvtlsi2ss(XMMRegister dst, Register src) {
3159 EnsureSpace ensure_space(this); 3159 EnsureSpace ensure_space(this);
3160 emit(0xF3); 3160 emit(0xF3);
3161 emit_optional_rex_32(dst, src); 3161 emit_optional_rex_32(dst, src);
3162 emit(0x0F); 3162 emit(0x0F);
3163 emit(0x2A); 3163 emit(0x2A);
3164 emit_sse_operand(dst, src); 3164 emit_sse_operand(dst, src);
3165 } 3165 }
3166 3166
3167 3167
3168 void Assembler::cvtqsi2ss(XMMRegister dst, const Operand& src) {
3169 DCHECK(!IsEnabled(AVX));
3170 EnsureSpace ensure_space(this);
3171 emit(0xF3);
3172 emit_rex_64(dst, src);
3173 emit(0x0F);
3174 emit(0x2A);
3175 emit_sse_operand(dst, src);
3176 }
3177
3178
3179 void Assembler::cvtqsi2ss(XMMRegister dst, Register src) {
3180 DCHECK(!IsEnabled(AVX));
3181 EnsureSpace ensure_space(this);
3182 emit(0xF3);
3183 emit_rex_64(dst, src);
3184 emit(0x0F);
3185 emit(0x2A);
3186 emit_sse_operand(dst, src);
3187 }
3188
3189
3168 void Assembler::cvtqsi2sd(XMMRegister dst, const Operand& src) { 3190 void Assembler::cvtqsi2sd(XMMRegister dst, const Operand& src) {
3169 DCHECK(!IsEnabled(AVX)); 3191 DCHECK(!IsEnabled(AVX));
3170 EnsureSpace ensure_space(this); 3192 EnsureSpace ensure_space(this);
3171 emit(0xF2); 3193 emit(0xF2);
3172 emit_rex_64(dst, src); 3194 emit_rex_64(dst, src);
3173 emit(0x0F); 3195 emit(0x0F);
3174 emit(0x2A); 3196 emit(0x2A);
3175 emit_sse_operand(dst, src); 3197 emit_sse_operand(dst, src);
3176 } 3198 }
3177 3199
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
4077 4099
4078 bool RelocInfo::IsInConstantPool() { 4100 bool RelocInfo::IsInConstantPool() {
4079 return false; 4101 return false;
4080 } 4102 }
4081 4103
4082 4104
4083 } // namespace internal 4105 } // namespace internal
4084 } // namespace v8 4106 } // namespace v8
4085 4107
4086 #endif // V8_TARGET_ARCH_X64 4108 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698