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 2700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2711 | 2711 |
2712 void MacroAssembler::Movaps(XMMRegister dst, XMMRegister src) { | 2712 void MacroAssembler::Movaps(XMMRegister dst, XMMRegister src) { |
2713 if (CpuFeatures::IsSupported(AVX)) { | 2713 if (CpuFeatures::IsSupported(AVX)) { |
2714 CpuFeatureScope scope(this, AVX); | 2714 CpuFeatureScope scope(this, AVX); |
2715 vmovaps(dst, src); | 2715 vmovaps(dst, src); |
2716 } else { | 2716 } else { |
2717 movaps(dst, src); | 2717 movaps(dst, src); |
2718 } | 2718 } |
2719 } | 2719 } |
2720 | 2720 |
| 2721 void MacroAssembler::Movups(XMMRegister dst, XMMRegister src) { |
| 2722 if (CpuFeatures::IsSupported(AVX)) { |
| 2723 CpuFeatureScope scope(this, AVX); |
| 2724 vmovups(dst, src); |
| 2725 } else { |
| 2726 movups(dst, src); |
| 2727 } |
| 2728 } |
| 2729 |
| 2730 void MacroAssembler::Movups(XMMRegister dst, const Operand& src) { |
| 2731 if (CpuFeatures::IsSupported(AVX)) { |
| 2732 CpuFeatureScope scope(this, AVX); |
| 2733 vmovups(dst, src); |
| 2734 } else { |
| 2735 movups(dst, src); |
| 2736 } |
| 2737 } |
| 2738 |
| 2739 void MacroAssembler::Movups(const Operand& dst, XMMRegister src) { |
| 2740 if (CpuFeatures::IsSupported(AVX)) { |
| 2741 CpuFeatureScope scope(this, AVX); |
| 2742 vmovups(dst, src); |
| 2743 } else { |
| 2744 movups(dst, src); |
| 2745 } |
| 2746 } |
2721 | 2747 |
2722 void MacroAssembler::Movapd(XMMRegister dst, XMMRegister src) { | 2748 void MacroAssembler::Movapd(XMMRegister dst, XMMRegister src) { |
2723 if (CpuFeatures::IsSupported(AVX)) { | 2749 if (CpuFeatures::IsSupported(AVX)) { |
2724 CpuFeatureScope scope(this, AVX); | 2750 CpuFeatureScope scope(this, AVX); |
2725 vmovapd(dst, src); | 2751 vmovapd(dst, src); |
2726 } else { | 2752 } else { |
2727 movapd(dst, src); | 2753 movapd(dst, src); |
2728 } | 2754 } |
2729 } | 2755 } |
2730 | 2756 |
(...skipping 2985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5716 movl(rax, dividend); | 5742 movl(rax, dividend); |
5717 shrl(rax, Immediate(31)); | 5743 shrl(rax, Immediate(31)); |
5718 addl(rdx, rax); | 5744 addl(rdx, rax); |
5719 } | 5745 } |
5720 | 5746 |
5721 | 5747 |
5722 } // namespace internal | 5748 } // namespace internal |
5723 } // namespace v8 | 5749 } // namespace v8 |
5724 | 5750 |
5725 #endif // V8_TARGET_ARCH_X64 | 5751 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |