From 51d3fc40637fc73d4156ad617cd451b844cbb75e Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Thu, 13 Nov 2014 14:11:42 +0000 Subject: Add support for int-to-byte in the optimizing compiler. - Add support for the int-to-byte Dex instruction in the optimizing compiler. - Implement the ARM and Thumb-2 SBFX instructions. - Generate x86, x86-64 and ARM (but not ARM64) code for char to byte, short to byte and int to byte HTypeConversion nodes. - Add related tests to test/422-type-conversion. Change-Id: Ic8b8911b90d4b5281fad15bcee96bc3ee85dc577 --- compiler/utils/arm/assembler_arm32.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compiler/utils/arm/assembler_arm32.h') diff --git a/compiler/utils/arm/assembler_arm32.h b/compiler/utils/arm/assembler_arm32.h index dbabb99933..b582e9e5ab 100644 --- a/compiler/utils/arm/assembler_arm32.h +++ b/compiler/utils/arm/assembler_arm32.h @@ -96,6 +96,8 @@ class Arm32Assembler FINAL : public ArmAssembler { void sdiv(Register rd, Register rn, Register rm, Condition cond = AL) OVERRIDE; void udiv(Register rd, Register rn, Register rm, Condition cond = AL) OVERRIDE; + void sbfx(Register rd, Register rn, uint32_t lsb, uint32_t width, Condition cond = AL) OVERRIDE; + // Load/store instructions. void ldr(Register rd, const Address& ad, Condition cond = AL) OVERRIDE; void str(Register rd, const Address& ad, Condition cond = AL) OVERRIDE; -- cgit v1.2.3-59-g8ed1b