OLD | NEW |
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 2691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2702 void MacroAssembler::Ucomisd(XMMRegister src1, const Operand& src2) { | 2702 void MacroAssembler::Ucomisd(XMMRegister src1, const Operand& src2) { |
2703 if (CpuFeatures::IsSupported(AVX)) { | 2703 if (CpuFeatures::IsSupported(AVX)) { |
2704 CpuFeatureScope scope(this, AVX); | 2704 CpuFeatureScope scope(this, AVX); |
2705 vucomisd(src1, src2); | 2705 vucomisd(src1, src2); |
2706 } else { | 2706 } else { |
2707 ucomisd(src1, src2); | 2707 ucomisd(src1, src2); |
2708 } | 2708 } |
2709 } | 2709 } |
2710 | 2710 |
2711 | 2711 |
| 2712 void MacroAssembler::Andpd(XMMRegister dst, XMMRegister src) { |
| 2713 if (CpuFeatures::IsSupported(AVX)) { |
| 2714 CpuFeatureScope scope(this, AVX); |
| 2715 vandpd(dst, dst, src); |
| 2716 } else { |
| 2717 andpd(dst, src); |
| 2718 } |
| 2719 } |
| 2720 |
| 2721 |
| 2722 void MacroAssembler::Orpd(XMMRegister dst, XMMRegister src) { |
| 2723 if (CpuFeatures::IsSupported(AVX)) { |
| 2724 CpuFeatureScope scope(this, AVX); |
| 2725 vorpd(dst, dst, src); |
| 2726 } else { |
| 2727 orpd(dst, src); |
| 2728 } |
| 2729 } |
| 2730 |
| 2731 |
2712 void MacroAssembler::Xorpd(XMMRegister dst, XMMRegister src) { | 2732 void MacroAssembler::Xorpd(XMMRegister dst, XMMRegister src) { |
2713 if (CpuFeatures::IsSupported(AVX)) { | 2733 if (CpuFeatures::IsSupported(AVX)) { |
2714 CpuFeatureScope scope(this, AVX); | 2734 CpuFeatureScope scope(this, AVX); |
2715 vxorpd(dst, dst, src); | 2735 vxorpd(dst, dst, src); |
2716 } else { | 2736 } else { |
2717 xorpd(dst, src); | 2737 xorpd(dst, src); |
2718 } | 2738 } |
2719 } | 2739 } |
2720 | 2740 |
2721 | 2741 |
(...skipping 2637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5359 movl(rax, dividend); | 5379 movl(rax, dividend); |
5360 shrl(rax, Immediate(31)); | 5380 shrl(rax, Immediate(31)); |
5361 addl(rdx, rax); | 5381 addl(rdx, rax); |
5362 } | 5382 } |
5363 | 5383 |
5364 | 5384 |
5365 } // namespace internal | 5385 } // namespace internal |
5366 } // namespace v8 | 5386 } // namespace v8 |
5367 | 5387 |
5368 #endif // V8_TARGET_ARCH_X64 | 5388 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |