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 | 6 |
7 #include "src/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/compilation-info.h" | 8 #include "src/compilation-info.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 } | 1919 } |
1920 case kArmSimd128Xor: { | 1920 case kArmSimd128Xor: { |
1921 __ veor(i.OutputSimd128Register(), i.InputSimd128Register(0), | 1921 __ veor(i.OutputSimd128Register(), i.InputSimd128Register(0), |
1922 i.InputSimd128Register(1)); | 1922 i.InputSimd128Register(1)); |
1923 break; | 1923 break; |
1924 } | 1924 } |
1925 case kArmSimd128Not: { | 1925 case kArmSimd128Not: { |
1926 __ vmvn(i.OutputSimd128Register(), i.InputSimd128Register(0)); | 1926 __ vmvn(i.OutputSimd128Register(), i.InputSimd128Register(0)); |
1927 break; | 1927 break; |
1928 } | 1928 } |
1929 case kArmSimd32x4Select: { | 1929 case kArmSimd32x4Select: |
1930 // Canonicalize input 0 lanes to all 0's or all 1's and move to dest. | 1930 case kArmSimd16x8Select: |
1931 __ vtst(Neon32, i.OutputSimd128Register(), i.InputSimd128Register(0), | 1931 case kArmSimd8x16Select: { |
1932 i.InputSimd128Register(0)); | 1932 // vbsl clobbers the mask input so make sure it was DefineSameAsFirst. |
| 1933 DCHECK(i.OutputSimd128Register().is(i.InputSimd128Register(0))); |
1933 __ vbsl(i.OutputSimd128Register(), i.InputSimd128Register(1), | 1934 __ vbsl(i.OutputSimd128Register(), i.InputSimd128Register(1), |
1934 i.InputSimd128Register(2)); | 1935 i.InputSimd128Register(2)); |
1935 break; | 1936 break; |
1936 } | |
1937 case kArmSimd16x8Select: { | |
1938 // Canonicalize input 0 lanes to all 0's or all 1's and move to dest. | |
1939 __ vtst(Neon16, i.OutputSimd128Register(), i.InputSimd128Register(0), | |
1940 i.InputSimd128Register(0)); | |
1941 __ vbsl(i.OutputSimd128Register(), i.InputSimd128Register(1), | |
1942 i.InputSimd128Register(2)); | |
1943 break; | |
1944 } | |
1945 case kArmSimd8x16Select: { | |
1946 // Canonicalize input 0 lanes to all 0's or all 1's and move to dest. | |
1947 __ vtst(Neon8, i.OutputSimd128Register(), i.InputSimd128Register(0), | |
1948 i.InputSimd128Register(0)); | |
1949 __ vbsl(i.OutputSimd128Register(), i.InputSimd128Register(1), | |
1950 i.InputSimd128Register(2)); | |
1951 break; | |
1952 } | 1937 } |
1953 case kCheckedLoadInt8: | 1938 case kCheckedLoadInt8: |
1954 ASSEMBLE_CHECKED_LOAD_INTEGER(ldrsb); | 1939 ASSEMBLE_CHECKED_LOAD_INTEGER(ldrsb); |
1955 break; | 1940 break; |
1956 case kCheckedLoadUint8: | 1941 case kCheckedLoadUint8: |
1957 ASSEMBLE_CHECKED_LOAD_INTEGER(ldrb); | 1942 ASSEMBLE_CHECKED_LOAD_INTEGER(ldrb); |
1958 break; | 1943 break; |
1959 case kCheckedLoadInt16: | 1944 case kCheckedLoadInt16: |
1960 ASSEMBLE_CHECKED_LOAD_INTEGER(ldrsh); | 1945 ASSEMBLE_CHECKED_LOAD_INTEGER(ldrsh); |
1961 break; | 1946 break; |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2613 padding_size -= v8::internal::Assembler::kInstrSize; | 2598 padding_size -= v8::internal::Assembler::kInstrSize; |
2614 } | 2599 } |
2615 } | 2600 } |
2616 } | 2601 } |
2617 | 2602 |
2618 #undef __ | 2603 #undef __ |
2619 | 2604 |
2620 } // namespace compiler | 2605 } // namespace compiler |
2621 } // namespace internal | 2606 } // namespace internal |
2622 } // namespace v8 | 2607 } // namespace v8 |
OLD | NEW |