Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: src/compiler/arm/code-generator-arm.cc

Issue 2700813002: [V8] Implement SIMD Boolean vector types to allow mask registers. (Closed)
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/assembler-arm64.h ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.h ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698