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

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

Issue 1420543003: [x64] Implement vsqrtsd AVX instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/x64/assembler-x64.h ('k') | src/x64/code-stubs-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 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3358 EnsureSpace ensure_space(this); 3358 EnsureSpace ensure_space(this);
3359 emit(0x66); 3359 emit(0x66);
3360 emit_optional_rex_32(dst, src); 3360 emit_optional_rex_32(dst, src);
3361 emit(0x0F); 3361 emit(0x0F);
3362 emit(0x57); 3362 emit(0x57);
3363 emit_sse_operand(dst, src); 3363 emit_sse_operand(dst, src);
3364 } 3364 }
3365 3365
3366 3366
3367 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) { 3367 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) {
3368 DCHECK(!IsEnabled(AVX));
3368 EnsureSpace ensure_space(this); 3369 EnsureSpace ensure_space(this);
3369 emit(0xF2); 3370 emit(0xF2);
3370 emit_optional_rex_32(dst, src); 3371 emit_optional_rex_32(dst, src);
3371 emit(0x0F); 3372 emit(0x0F);
3372 emit(0x51); 3373 emit(0x51);
3373 emit_sse_operand(dst, src); 3374 emit_sse_operand(dst, src);
3374 } 3375 }
3375 3376
3376 3377
3377 void Assembler::sqrtsd(XMMRegister dst, const Operand& src) { 3378 void Assembler::sqrtsd(XMMRegister dst, const Operand& src) {
3379 DCHECK(!IsEnabled(AVX));
3378 EnsureSpace ensure_space(this); 3380 EnsureSpace ensure_space(this);
3379 emit(0xF2); 3381 emit(0xF2);
3380 emit_optional_rex_32(dst, src); 3382 emit_optional_rex_32(dst, src);
3381 emit(0x0F); 3383 emit(0x0F);
3382 emit(0x51); 3384 emit(0x51);
3383 emit_sse_operand(dst, src); 3385 emit_sse_operand(dst, src);
3384 } 3386 }
3385 3387
3386 3388
3387 void Assembler::ucomisd(XMMRegister dst, XMMRegister src) { 3389 void Assembler::ucomisd(XMMRegister dst, XMMRegister src) {
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
4034 4036
4035 bool RelocInfo::IsInConstantPool() { 4037 bool RelocInfo::IsInConstantPool() {
4036 return false; 4038 return false;
4037 } 4039 }
4038 4040
4039 4041
4040 } // namespace internal 4042 } // namespace internal
4041 } // namespace v8 4043 } // namespace v8
4042 4044
4043 #endif // V8_TARGET_ARCH_X64 4045 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698