ARM SSAT instruction 5-bit immediate handling.
authorJim Grosbach <grosbach@apple.com>
Fri, 22 Jul 2011 23:16:18 +0000 (23:16 +0000)
committerJim Grosbach <grosbach@apple.com>
Fri, 22 Jul 2011 23:16:18 +0000 (23:16 +0000)
commit4a5ffb399f841783c201c599b88d576757f1922e
tree617da249fe89433aa1af7b1043521bed6c9bc7c5
parent4428069f10ac6e7efb55826437c82428d4bbe03e
ARM SSAT instruction 5-bit immediate handling.

The immediate is in the range 1-32, but is encoded as 0-31 in a 5-bit bitfield.
Update the representation such that we store the operand as 0-31, allowing us
to remove the encoder method and the special case handling in the disassembler.
Update the assembly parser and the instruction printer accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135823 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb2.td
lib/Target/ARM/ARMMCCodeEmitter.cpp
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
lib/Target/ARM/InstPrinter/ARMInstPrinter.h
utils/TableGen/EDEmitter.cpp