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

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

Issue 2769083003: [ARM] Make Simd 128 bit load/store more like existing load/store. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('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/assembler-inl.h" 8 #include "src/assembler-inl.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1437 case kArmVldrF32: { 1437 case kArmVldrF32: {
1438 __ vldr(i.OutputFloatRegister(), i.InputOffset()); 1438 __ vldr(i.OutputFloatRegister(), i.InputOffset());
1439 DCHECK_EQ(LeaveCC, i.OutputSBit()); 1439 DCHECK_EQ(LeaveCC, i.OutputSBit());
1440 break; 1440 break;
1441 } 1441 }
1442 case kArmVstrF32: 1442 case kArmVstrF32:
1443 __ vstr(i.InputFloatRegister(0), i.InputOffset(1)); 1443 __ vstr(i.InputFloatRegister(0), i.InputOffset(1));
1444 DCHECK_EQ(LeaveCC, i.OutputSBit()); 1444 DCHECK_EQ(LeaveCC, i.OutputSBit());
1445 break; 1445 break;
1446 case kArmVld1F64: { 1446 case kArmVld1F64: {
1447 __ vld1(NeonSize::Neon8, NeonListOperand(i.OutputDoubleRegister()), 1447 __ vld1(Neon8, NeonListOperand(i.OutputDoubleRegister()),
1448 NeonMemOperand(i.InputRegister(0))); 1448 NeonMemOperand(i.InputRegister(0)));
1449 break; 1449 break;
1450 } 1450 }
1451 case kArmVst1F64: { 1451 case kArmVst1F64: {
1452 __ vst1(Neon8, NeonListOperand(i.InputDoubleRegister(0)), 1452 __ vst1(Neon8, NeonListOperand(i.InputDoubleRegister(0)),
1453 NeonMemOperand(i.InputRegister(1))); 1453 NeonMemOperand(i.InputRegister(1)));
1454 break; 1454 break;
1455 } 1455 }
1456 case kArmVld1S128: {
1457 __ vld1(Neon8, NeonListOperand(i.OutputSimd128Register()),
1458 NeonMemOperand(i.InputRegister(0)));
1459 break;
1460 }
1461 case kArmVst1S128: {
1462 __ vst1(Neon8, NeonListOperand(i.InputSimd128Register(0)),
1463 NeonMemOperand(i.InputRegister(1)));
1464 break;
1465 }
1456 case kArmVldrF64: 1466 case kArmVldrF64:
1457 __ vldr(i.OutputDoubleRegister(), i.InputOffset()); 1467 __ vldr(i.OutputDoubleRegister(), i.InputOffset());
1458 DCHECK_EQ(LeaveCC, i.OutputSBit()); 1468 DCHECK_EQ(LeaveCC, i.OutputSBit());
1459 break; 1469 break;
1460 case kArmVstrF64: 1470 case kArmVstrF64:
1461 __ vstr(i.InputDoubleRegister(0), i.InputOffset(1)); 1471 __ vstr(i.InputDoubleRegister(0), i.InputOffset(1));
1462 DCHECK_EQ(LeaveCC, i.OutputSBit()); 1472 DCHECK_EQ(LeaveCC, i.OutputSBit());
1463 break; 1473 break;
1464 case kArmFloat32Max: { 1474 case kArmFloat32Max: {
1465 SwVfpRegister result = i.OutputFloatRegister(); 1475 SwVfpRegister result = i.OutputFloatRegister();
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 case kArmUint8x16LessThanOrEqual: { 1995 case kArmUint8x16LessThanOrEqual: {
1986 __ vcge(NeonU8, i.OutputSimd128Register(), i.InputSimd128Register(1), 1996 __ vcge(NeonU8, i.OutputSimd128Register(), i.InputSimd128Register(1),
1987 i.InputSimd128Register(0)); 1997 i.InputSimd128Register(0));
1988 break; 1998 break;
1989 } 1999 }
1990 case kArmSimd128Zero: { 2000 case kArmSimd128Zero: {
1991 __ veor(i.OutputSimd128Register(), i.OutputSimd128Register(), 2001 __ veor(i.OutputSimd128Register(), i.OutputSimd128Register(),
1992 i.OutputSimd128Register()); 2002 i.OutputSimd128Register());
1993 break; 2003 break;
1994 } 2004 }
1995 case kArmSimd128Load: {
1996 MemOperand src = i.InputOffset();
1997 __ vld1(Neon8, NeonListOperand(i.OutputSimd128Register()),
1998 NeonMemOperand(src.rn(), src.rm()));
1999 break;
2000 }
2001 case kArmSimd128Store: {
2002 MemOperand src = i.InputOffset(1);
2003 __ vst1(Neon8, NeonListOperand(i.InputSimd128Register(0)),
2004 NeonMemOperand(src.rn(), src.rm()));
2005 break;
2006 }
2007 case kArmSimd128And: { 2005 case kArmSimd128And: {
2008 __ vand(i.OutputSimd128Register(), i.InputSimd128Register(0), 2006 __ vand(i.OutputSimd128Register(), i.InputSimd128Register(0),
2009 i.InputSimd128Register(1)); 2007 i.InputSimd128Register(1));
2010 break; 2008 break;
2011 } 2009 }
2012 case kArmSimd128Or: { 2010 case kArmSimd128Or: {
2013 __ vorr(i.OutputSimd128Register(), i.InputSimd128Register(0), 2011 __ vorr(i.OutputSimd128Register(), i.InputSimd128Register(0),
2014 i.InputSimd128Register(1)); 2012 i.InputSimd128Register(1));
2015 break; 2013 break;
2016 } 2014 }
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 padding_size -= v8::internal::Assembler::kInstrSize; 2831 padding_size -= v8::internal::Assembler::kInstrSize;
2834 } 2832 }
2835 } 2833 }
2836 } 2834 }
2837 2835
2838 #undef __ 2836 #undef __
2839 2837
2840 } // namespace compiler 2838 } // namespace compiler
2841 } // namespace internal 2839 } // namespace internal
2842 } // namespace v8 2840 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698