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

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

Issue 1420653005: [x64] Implemennt vroundsd AVX instruction. (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 3402 matching lines...) Expand 10 before | Expand all | Expand 10 after
3413 emit(0xF2); 3413 emit(0xF2);
3414 emit_optional_rex_32(dst, src); 3414 emit_optional_rex_32(dst, src);
3415 emit(0x0F); 3415 emit(0x0F);
3416 emit(0xC2); 3416 emit(0xC2);
3417 emit_sse_operand(dst, src); 3417 emit_sse_operand(dst, src);
3418 emit(0x01); // LT == 1 3418 emit(0x01); // LT == 1
3419 } 3419 }
3420 3420
3421 3421
3422 void Assembler::roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode) { 3422 void Assembler::roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode) {
3423 DCHECK(!IsEnabled(AVX));
3423 DCHECK(IsEnabled(SSE4_1)); 3424 DCHECK(IsEnabled(SSE4_1));
3424 EnsureSpace ensure_space(this); 3425 EnsureSpace ensure_space(this);
3425 emit(0x66); 3426 emit(0x66);
3426 emit_optional_rex_32(dst, src); 3427 emit_optional_rex_32(dst, src);
3427 emit(0x0f); 3428 emit(0x0f);
3428 emit(0x3a); 3429 emit(0x3a);
3429 emit(0x0b); 3430 emit(0x0b);
3430 emit_sse_operand(dst, src); 3431 emit_sse_operand(dst, src);
3431 // Mask precision exeption. 3432 // Mask precision exception.
3432 emit(static_cast<byte>(mode) | 0x8); 3433 emit(static_cast<byte>(mode) | 0x8);
3433 } 3434 }
3434 3435
3435 3436
3436 void Assembler::movmskpd(Register dst, XMMRegister src) { 3437 void Assembler::movmskpd(Register dst, XMMRegister src) {
3437 EnsureSpace ensure_space(this); 3438 EnsureSpace ensure_space(this);
3438 emit(0x66); 3439 emit(0x66);
3439 emit_optional_rex_32(dst, src); 3440 emit_optional_rex_32(dst, src);
3440 emit(0x0f); 3441 emit(0x0f);
3441 emit(0x50); 3442 emit(0x50);
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
4036 4037
4037 bool RelocInfo::IsInConstantPool() { 4038 bool RelocInfo::IsInConstantPool() {
4038 return false; 4039 return false;
4039 } 4040 }
4040 4041
4041 4042
4042 } // namespace internal 4043 } // namespace internal
4043 } // namespace v8 4044 } // namespace v8
4044 4045
4045 #endif // V8_TARGET_ARCH_X64 4046 #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