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 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1964 __ addv_w(i.OutputSimd128Register(), i.InputSimd128Register(0), | 1964 __ addv_w(i.OutputSimd128Register(), i.InputSimd128Register(0), |
1965 i.InputSimd128Register(1)); | 1965 i.InputSimd128Register(1)); |
1966 break; | 1966 break; |
1967 } | 1967 } |
1968 case kMips64I32x4Sub: { | 1968 case kMips64I32x4Sub: { |
1969 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); | 1969 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
1970 __ subv_w(i.OutputSimd128Register(), i.InputSimd128Register(0), | 1970 __ subv_w(i.OutputSimd128Register(), i.InputSimd128Register(0), |
1971 i.InputSimd128Register(1)); | 1971 i.InputSimd128Register(1)); |
1972 break; | 1972 break; |
1973 } | 1973 } |
| 1974 case kMips64F32x4Splat: { |
| 1975 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
| 1976 __ FmoveLow(kScratchReg, i.InputSingleRegister(0)); |
| 1977 __ fill_w(i.OutputSimd128Register(), kScratchReg); |
| 1978 break; |
| 1979 } |
| 1980 case kMips64F32x4ExtractLane: { |
| 1981 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
| 1982 __ copy_u_w(kScratchReg, i.InputSimd128Register(0), i.InputInt8(1)); |
| 1983 __ FmoveLow(i.OutputSingleRegister(), kScratchReg); |
| 1984 break; |
| 1985 } |
| 1986 case kMips64F32x4ReplaceLane: { |
| 1987 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
| 1988 Simd128Register src = i.InputSimd128Register(0); |
| 1989 Simd128Register dst = i.OutputSimd128Register(); |
| 1990 if (!src.is(dst)) { |
| 1991 __ move_v(dst, src); |
| 1992 } |
| 1993 __ FmoveLow(kScratchReg, i.InputSingleRegister(2)); |
| 1994 __ insert_w(dst, i.InputInt8(1), kScratchReg); |
| 1995 break; |
| 1996 } |
| 1997 case kMips64F32x4SConvertI32x4: { |
| 1998 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
| 1999 __ ffint_s_w(i.OutputSimd128Register(), i.InputSimd128Register(0)); |
| 2000 break; |
| 2001 } |
| 2002 case kMips64F32x4UConvertI32x4: { |
| 2003 CpuFeatureScope msa_scope(masm(), MIPS_SIMD); |
| 2004 __ ffint_u_w(i.OutputSimd128Register(), i.InputSimd128Register(0)); |
| 2005 break; |
| 2006 } |
1974 } | 2007 } |
1975 return kSuccess; | 2008 return kSuccess; |
1976 } // NOLINT(readability/fn_size) | 2009 } // NOLINT(readability/fn_size) |
1977 | 2010 |
1978 | 2011 |
1979 #define UNSUPPORTED_COND(opcode, condition) \ | 2012 #define UNSUPPORTED_COND(opcode, condition) \ |
1980 OFStream out(stdout); \ | 2013 OFStream out(stdout); \ |
1981 out << "Unsupported " << #opcode << " condition: \"" << condition << "\""; \ | 2014 out << "Unsupported " << #opcode << " condition: \"" << condition << "\""; \ |
1982 UNIMPLEMENTED(); | 2015 UNIMPLEMENTED(); |
1983 | 2016 |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2730 padding_size -= v8::internal::Assembler::kInstrSize; | 2763 padding_size -= v8::internal::Assembler::kInstrSize; |
2731 } | 2764 } |
2732 } | 2765 } |
2733 } | 2766 } |
2734 | 2767 |
2735 #undef __ | 2768 #undef __ |
2736 | 2769 |
2737 } // namespace compiler | 2770 } // namespace compiler |
2738 } // namespace internal | 2771 } // namespace internal |
2739 } // namespace v8 | 2772 } // namespace v8 |
OLD | NEW |