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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 void MacroAssembler::Movmskpd(Register dst, XMMRegister src) { | 2662 void MacroAssembler::Movmskpd(Register dst, XMMRegister src) { |
2663 if (CpuFeatures::IsSupported(AVX)) { | 2663 if (CpuFeatures::IsSupported(AVX)) { |
2664 CpuFeatureScope scope(this, AVX); | 2664 CpuFeatureScope scope(this, AVX); |
2665 vmovmskpd(dst, src); | 2665 vmovmskpd(dst, src); |
2666 } else { | 2666 } else { |
2667 movmskpd(dst, src); | 2667 movmskpd(dst, src); |
2668 } | 2668 } |
2669 } | 2669 } |
2670 | 2670 |
2671 | 2671 |
| 2672 void MacroAssembler::Roundsd(XMMRegister dst, XMMRegister src, |
| 2673 RoundingMode mode) { |
| 2674 if (CpuFeatures::IsSupported(AVX)) { |
| 2675 CpuFeatureScope scope(this, AVX); |
| 2676 vroundsd(dst, dst, src, mode); |
| 2677 } else { |
| 2678 roundsd(dst, src, mode); |
| 2679 } |
| 2680 } |
| 2681 |
| 2682 |
2672 void MacroAssembler::Sqrtsd(XMMRegister dst, XMMRegister src) { | 2683 void MacroAssembler::Sqrtsd(XMMRegister dst, XMMRegister src) { |
2673 if (CpuFeatures::IsSupported(AVX)) { | 2684 if (CpuFeatures::IsSupported(AVX)) { |
2674 CpuFeatureScope scope(this, AVX); | 2685 CpuFeatureScope scope(this, AVX); |
2675 vsqrtsd(dst, dst, src); | 2686 vsqrtsd(dst, dst, src); |
2676 } else { | 2687 } else { |
2677 sqrtsd(dst, src); | 2688 sqrtsd(dst, src); |
2678 } | 2689 } |
2679 } | 2690 } |
2680 | 2691 |
2681 | 2692 |
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5399 movl(rax, dividend); | 5410 movl(rax, dividend); |
5400 shrl(rax, Immediate(31)); | 5411 shrl(rax, Immediate(31)); |
5401 addl(rdx, rax); | 5412 addl(rdx, rax); |
5402 } | 5413 } |
5403 | 5414 |
5404 | 5415 |
5405 } // namespace internal | 5416 } // namespace internal |
5406 } // namespace v8 | 5417 } // namespace v8 |
5407 | 5418 |
5408 #endif // V8_TARGET_ARCH_X64 | 5419 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |