diff options
author | Roland Levillain <rpl@google.com> | 2014-11-14 16:27:39 +0000 |
---|---|---|
committer | Roland Levillain <rpl@google.com> | 2014-11-14 16:27:39 +0000 |
commit | 01a8d7135c59b4a664d1e0c0e4d8db343d4118ef (patch) | |
tree | 2a7470f7320f015e67da880e3cf51fd9d616c17d /compiler/optimizing/builder.cc | |
parent | ff5298ff1640b730ee62c90ca78fc96b7ee82ec4 (diff) | |
download | android_art-01a8d7135c59b4a664d1e0c0e4d8db343d4118ef.tar.gz android_art-01a8d7135c59b4a664d1e0c0e4d8db343d4118ef.tar.bz2 android_art-01a8d7135c59b4a664d1e0c0e4d8db343d4118ef.zip |
Add support for int-to-short in the optimizing compiler.
- Add support for the int-to-short Dex instruction in the
optimizing compiler.
- Generate x86, x86-64 and ARM (but not ARM64) code for
byte to short, int to short and char to short
HTypeConversion nodes.
- Add related tests to test/422-type-conversion.
Change-Id: If1829549708d9c3473efaa641f7f0bcfa6080ae9
Diffstat (limited to 'compiler/optimizing/builder.cc')
-rw-r--r-- | compiler/optimizing/builder.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index b51b6e7d25..b5aff4b576 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -1007,6 +1007,11 @@ bool HGraphBuilder::AnalyzeDexInstruction(const Instruction& instruction, uint32 break; } + case Instruction::INT_TO_SHORT: { + Conversion_12x(instruction, Primitive::kPrimInt, Primitive::kPrimShort); + break; + } + case Instruction::INT_TO_CHAR: { Conversion_12x(instruction, Primitive::kPrimInt, Primitive::kPrimChar); break; |