diff options
author | 2017-10-11 13:23:17 +0100 | |
---|---|---|
committer | 2017-10-18 15:52:51 +0100 | |
commit | 61b922847403ac0e74b6477114c81a28ac2e01a0 (patch) | |
tree | 02674602fb2592f758f51389b3c7b276ab4df3ee /compiler/optimizing/nodes_shared.cc | |
parent | 6783118d2ad9d759f0617b1219a9e29a10a569f7 (diff) |
ART: Introduce Uint8 loads in compiled code.
Some vectorization patterns are not recognized anymore.
This shall be fixed later.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: testrunner.py --target --optimizing on Nexus 5X
Test: Nexus 5X boots.
Bug: 23964345
Bug: 67935418
Change-Id: I587a328d4799529949c86fa8045c6df21e3a8617
Diffstat (limited to 'compiler/optimizing/nodes_shared.cc')
-rw-r--r-- | compiler/optimizing/nodes_shared.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes_shared.cc b/compiler/optimizing/nodes_shared.cc index f982523634..2f971b93a6 100644 --- a/compiler/optimizing/nodes_shared.cc +++ b/compiler/optimizing/nodes_shared.cc @@ -54,6 +54,9 @@ void HDataProcWithShifterOp::GetOpInfoFromInstruction(HInstruction* instruction, // default encoding 'LSL 0'. *op_kind = kLSL; *shift_amount = 0; + } else if (result_type == DataType::Type::kUint8 || + (input_type == DataType::Type::kUint8 && input_size < result_size)) { + *op_kind = kUXTB; } else if (result_type == DataType::Type::kUint16 || (input_type == DataType::Type::kUint16 && input_size < result_size)) { *op_kind = kUXTH; |