Fix edge cases of ARM shift operands in arith instructions.
authorTim Northover <Tim.Northover@arm.com>
Sat, 22 Sep 2012 11:18:19 +0000 (11:18 +0000)
committerTim Northover <Tim.Northover@arm.com>
Sat, 22 Sep 2012 11:18:19 +0000 (11:18 +0000)
commit2fdbdc58701ef41ab6b52c064723926e6ec4b44f
treeb2dd3a0b65fd0e843dc1d30f0f2f5f8b49b8f1e8
parent0c97e76492534528bb45ee7b7366bc59590718f7
Fix edge cases of ARM shift operands in arith instructions.

As before with load instructions, oddities like "asr #32", "rrx" could
be printed incorrectly.

Patch by Chris Lidbury.

llvm-svn: 164456
llvm/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
llvm/test/MC/ARM/arm-shift-encoding.s
llvm/test/MC/ARM/thumb-shift-encoding.s [new file with mode: 0644]