ARM parsing and encoding of SBFX and UBFX.
authorJim Grosbach <grosbach@apple.com>
Wed, 27 Jul 2011 21:09:25 +0000 (21:09 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 27 Jul 2011 21:09:25 +0000 (21:09 +0000)
commitfb8989e64024547e4ad5ab6fe4d94fe146a7899f
treebe6add2fd82a71a7244d7387558fe7fef0d00bc9
parentc94eefb258fb35e6bb95ceea8f21ea030a907f08
ARM parsing and encoding of SBFX and UBFX.

Encode the width operand as it encodes in the instruction, which simplifies
the disassembler and the encoder, by using the imm1_32 operand def. Add a
diagnostic for the context-sensitive constraint that the width must be in
the range [1,32-lsb].

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136264 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMCodeEmitter.cpp
lib/Target/ARM/ARMISelDAGToDAG.cpp
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
test/MC/ARM/basic-arm-instructions.s
test/MC/ARM/diagnostics.s