OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 #include "src/compilation-info.h" | 6 #include "src/compilation-info.h" |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/compiler/osr.h" | 10 #include "src/compiler/osr.h" |
(...skipping 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1773 __ max_u_w(i.OutputSimd128Register(), i.InputSimd128Register(0), | 1773 __ max_u_w(i.OutputSimd128Register(), i.InputSimd128Register(0), |
1774 i.InputSimd128Register(1)); | 1774 i.InputSimd128Register(1)); |
1775 break; | 1775 break; |
1776 } | 1776 } |
1777 case kMipsI32x4MinU: { | 1777 case kMipsI32x4MinU: { |
1778 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); | 1778 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
1779 __ min_u_w(i.OutputSimd128Register(), i.InputSimd128Register(0), | 1779 __ min_u_w(i.OutputSimd128Register(), i.InputSimd128Register(0), |
1780 i.InputSimd128Register(1)); | 1780 i.InputSimd128Register(1)); |
1781 break; | 1781 break; |
1782 } | 1782 } |
1783 case kMipsS32x4Select: | 1783 case kMipsS128Select: { |
1784 case kMipsS16x8Select: | |
1785 case kMipsS8x16Select: { | |
1786 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); | 1784 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
1787 DCHECK(i.OutputSimd128Register().is(i.InputSimd128Register(0))); | 1785 DCHECK(i.OutputSimd128Register().is(i.InputSimd128Register(0))); |
1788 __ bsel_v(i.OutputSimd128Register(), i.InputSimd128Register(2), | 1786 __ bsel_v(i.OutputSimd128Register(), i.InputSimd128Register(2), |
1789 i.InputSimd128Register(1)); | 1787 i.InputSimd128Register(1)); |
1790 break; | 1788 break; |
1791 } | 1789 } |
1792 case kMipsF32x4Abs: { | 1790 case kMipsF32x4Abs: { |
1793 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); | 1791 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
1794 __ bclri_w(i.OutputSimd128Register(), i.InputSimd128Register(0), 31); | 1792 __ bclri_w(i.OutputSimd128Register(), i.InputSimd128Register(0), 31); |
1795 break; | 1793 break; |
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3072 padding_size -= v8::internal::Assembler::kInstrSize; | 3070 padding_size -= v8::internal::Assembler::kInstrSize; |
3073 } | 3071 } |
3074 } | 3072 } |
3075 } | 3073 } |
3076 | 3074 |
3077 #undef __ | 3075 #undef __ |
3078 | 3076 |
3079 } // namespace compiler | 3077 } // namespace compiler |
3080 } // namespace internal | 3078 } // namespace internal |
3081 } // namespace v8 | 3079 } // namespace v8 |
OLD | NEW |