[ARM] Do not generate invalid encoding for stack adjust, even if this is just
authorQuentin Colombet <qcolombet@apple.com>
Thu, 30 Apr 2015 18:52:49 +0000 (18:52 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Thu, 30 Apr 2015 18:52:49 +0000 (18:52 +0000)
commit131da40ffdc7ad0a04d6b107b67588697e41b544
tree5c0cb905f7913f4b58a81ba1ec0230dcca1067ae
parent6ff3ac67e0b92e76a087d777c4a74361e11c4e29
[ARM] Do not generate invalid encoding for stack adjust, even if this is just
temporary.

Because of that:
1. The machine verifier was complaining on such code.
2. The generate code worked just because the thumb reduction size pass fixed the
opcode.

rdar://problem/20749824

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236247 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/Thumb2InstrInfo.cpp
test/CodeGen/ARM/thumb-big-stack.ll [new file with mode: 0644]