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

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

Issue 1411023002: [x64] Emit vmovmskpd when AVX is enabled. (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/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 3536 matching lines...) Expand 10 before | Expand all | Expand 10 after
3547 void Assembler::vmovq(Register dst, XMMRegister src) { 3547 void Assembler::vmovq(Register dst, XMMRegister src) {
3548 DCHECK(IsEnabled(AVX)); 3548 DCHECK(IsEnabled(AVX));
3549 EnsureSpace ensure_space(this); 3549 EnsureSpace ensure_space(this);
3550 XMMRegister idst = {dst.code()}; 3550 XMMRegister idst = {dst.code()};
3551 emit_vex_prefix(src, xmm0, idst, kL128, k66, k0F, kW1); 3551 emit_vex_prefix(src, xmm0, idst, kL128, k66, k0F, kW1);
3552 emit(0x7e); 3552 emit(0x7e);
3553 emit_sse_operand(src, dst); 3553 emit_sse_operand(src, dst);
3554 } 3554 }
3555 3555
3556 3556
3557 void Assembler::vmovapd(XMMRegister dst, XMMRegister src) {
3558 DCHECK(IsEnabled(AVX));
3559 EnsureSpace ensure_space(this);
3560 emit_vex_prefix(dst, xmm0, src, kL128, k66, k0F, kWIG);
3561 emit(0x28);
3562 emit_sse_operand(dst, src);
3563 }
3564
3565
3566 void Assembler::vsd(byte op, XMMRegister dst, XMMRegister src1, 3557 void Assembler::vsd(byte op, XMMRegister dst, XMMRegister src1,
3567 XMMRegister src2, SIMDPrefix pp, LeadingOpcode m, VexW w) { 3558 XMMRegister src2, SIMDPrefix pp, LeadingOpcode m, VexW w) {
3568 DCHECK(IsEnabled(AVX)); 3559 DCHECK(IsEnabled(AVX));
3569 EnsureSpace ensure_space(this); 3560 EnsureSpace ensure_space(this);
3570 emit_vex_prefix(dst, src1, src2, kLIG, pp, m, w); 3561 emit_vex_prefix(dst, src1, src2, kLIG, pp, m, w);
3571 emit(op); 3562 emit(op);
3572 emit_sse_operand(dst, src2); 3563 emit_sse_operand(dst, src2);
3573 } 3564 }
3574 3565
3575 3566
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
4017 4008
4018 bool RelocInfo::IsInConstantPool() { 4009 bool RelocInfo::IsInConstantPool() {
4019 return false; 4010 return false;
4020 } 4011 }
4021 4012
4022 4013
4023 } // namespace internal 4014 } // namespace internal
4024 } // namespace v8 4015 } // namespace v8
4025 4016
4026 #endif // V8_TARGET_ARCH_X64 4017 #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