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

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

Issue 1408983002: [x64] Make use of vxorpd 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 | « no previous file | 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 2431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 void Assembler::orps(XMMRegister dst, const Operand& src) { 2442 void Assembler::orps(XMMRegister dst, const Operand& src) {
2443 EnsureSpace ensure_space(this); 2443 EnsureSpace ensure_space(this);
2444 emit_optional_rex_32(dst, src); 2444 emit_optional_rex_32(dst, src);
2445 emit(0x0F); 2445 emit(0x0F);
2446 emit(0x56); 2446 emit(0x56);
2447 emit_sse_operand(dst, src); 2447 emit_sse_operand(dst, src);
2448 } 2448 }
2449 2449
2450 2450
2451 void Assembler::xorps(XMMRegister dst, XMMRegister src) { 2451 void Assembler::xorps(XMMRegister dst, XMMRegister src) {
2452 DCHECK(!IsEnabled(AVX));
2452 EnsureSpace ensure_space(this); 2453 EnsureSpace ensure_space(this);
2453 emit_optional_rex_32(dst, src); 2454 emit_optional_rex_32(dst, src);
2454 emit(0x0F); 2455 emit(0x0F);
2455 emit(0x57); 2456 emit(0x57);
2456 emit_sse_operand(dst, src); 2457 emit_sse_operand(dst, src);
2457 } 2458 }
2458 2459
2459 2460
2460 void Assembler::xorps(XMMRegister dst, const Operand& src) { 2461 void Assembler::xorps(XMMRegister dst, const Operand& src) {
2462 DCHECK(!IsEnabled(AVX));
2461 EnsureSpace ensure_space(this); 2463 EnsureSpace ensure_space(this);
2462 emit_optional_rex_32(dst, src); 2464 emit_optional_rex_32(dst, src);
2463 emit(0x0F); 2465 emit(0x0F);
2464 emit(0x57); 2466 emit(0x57);
2465 emit_sse_operand(dst, src); 2467 emit_sse_operand(dst, src);
2466 } 2468 }
2467 2469
2468 2470
2469 void Assembler::addps(XMMRegister dst, XMMRegister src) { 2471 void Assembler::addps(XMMRegister dst, XMMRegister src) {
2470 EnsureSpace ensure_space(this); 2472 EnsureSpace ensure_space(this);
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
3316 EnsureSpace ensure_space(this); 3318 EnsureSpace ensure_space(this);
3317 emit(0x66); 3319 emit(0x66);
3318 emit_optional_rex_32(dst, src); 3320 emit_optional_rex_32(dst, src);
3319 emit(0x0F); 3321 emit(0x0F);
3320 emit(0x56); 3322 emit(0x56);
3321 emit_sse_operand(dst, src); 3323 emit_sse_operand(dst, src);
3322 } 3324 }
3323 3325
3324 3326
3325 void Assembler::xorpd(XMMRegister dst, XMMRegister src) { 3327 void Assembler::xorpd(XMMRegister dst, XMMRegister src) {
3328 DCHECK(!IsEnabled(AVX));
3326 EnsureSpace ensure_space(this); 3329 EnsureSpace ensure_space(this);
3327 emit(0x66); 3330 emit(0x66);
3328 emit_optional_rex_32(dst, src); 3331 emit_optional_rex_32(dst, src);
3329 emit(0x0F); 3332 emit(0x0F);
3330 emit(0x57); 3333 emit(0x57);
3331 emit_sse_operand(dst, src); 3334 emit_sse_operand(dst, src);
3332 } 3335 }
3333 3336
3334 3337
3335 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) { 3338 void Assembler::sqrtsd(XMMRegister dst, XMMRegister src) {
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
4025 4028
4026 bool RelocInfo::IsInConstantPool() { 4029 bool RelocInfo::IsInConstantPool() {
4027 return false; 4030 return false;
4028 } 4031 }
4029 4032
4030 4033
4031 } // namespace internal 4034 } // namespace internal
4032 } // namespace v8 4035 } // namespace v8
4033 4036
4034 #endif // V8_TARGET_ARCH_X64 4037 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698