ARM disassembler was erroneously accepting an invalid LSL instruction.
authorJohnny Chen <johnny.chen@apple.com>
Tue, 5 Apr 2011 21:49:44 +0000 (21:49 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Tue, 5 Apr 2011 21:49:44 +0000 (21:49 +0000)
commitc584e317e9d5795129e747c9b0854165e39933f1
treeb82013652a2f1e6877ea7a4ab381abb609c3df32
parent76706013131247121a3a153f378946a0cb0e319c
ARM disassembler was erroneously accepting an invalid LSL instruction.
For register-controlled shifts, we should check that the encoding constraint
Inst{7} = 0 and Inst{4} = 1 is satisfied.

rdar://problem/9237693

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128941 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
test/MC/Disassembler/ARM/invalid-MOVs-LSL-arm.txt [new file with mode: 0644]