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

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

Issue 2719953002: Add Int32x4 Wasm Simd Binops, compare ops, select (Closed)
Patch Set: Fix macro Created 3 years, 9 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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3495 matching lines...) Expand 10 before | Expand all | Expand 10 after
3506 3506
3507 void MacroAssembler::Popcntq(Register dst, const Operand& src) { 3507 void MacroAssembler::Popcntq(Register dst, const Operand& src) {
3508 if (CpuFeatures::IsSupported(POPCNT)) { 3508 if (CpuFeatures::IsSupported(POPCNT)) {
3509 CpuFeatureScope scope(this, POPCNT); 3509 CpuFeatureScope scope(this, POPCNT);
3510 popcntq(dst, src); 3510 popcntq(dst, src);
3511 return; 3511 return;
3512 } 3512 }
3513 UNREACHABLE(); 3513 UNREACHABLE();
3514 } 3514 }
3515 3515
3516 void MacroAssembler::Pshufd(XMMRegister dst, XMMRegister src, uint8_t shuffle) {
3517 if (CpuFeatures::IsSupported(AVX)) {
3518 CpuFeatureScope scope(this, AVX);
3519 vpshufd(dst, src, shuffle);
3520 } else {
3521 pshufd(dst, src, shuffle);
3522 }
3523 }
3516 3524
3517 void MacroAssembler::Pushad() { 3525 void MacroAssembler::Pushad() {
3518 Push(rax); 3526 Push(rax);
3519 Push(rcx); 3527 Push(rcx);
3520 Push(rdx); 3528 Push(rdx);
3521 Push(rbx); 3529 Push(rbx);
3522 // Not pushing rsp or rbp. 3530 // Not pushing rsp or rbp.
3523 Push(rsi); 3531 Push(rsi);
3524 Push(rdi); 3532 Push(rdi);
3525 Push(r8); 3533 Push(r8);
(...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after
5287 movl(rax, dividend); 5295 movl(rax, dividend);
5288 shrl(rax, Immediate(31)); 5296 shrl(rax, Immediate(31));
5289 addl(rdx, rax); 5297 addl(rdx, rax);
5290 } 5298 }
5291 5299
5292 5300
5293 } // namespace internal 5301 } // namespace internal
5294 } // namespace v8 5302 } // namespace v8
5295 5303
5296 #endif // V8_TARGET_ARCH_X64 5304 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698