OSDN Git Service

ARM: disallow SP as Rn for Thumb2 TST & TEQ instructions
authorTim Northover <tnorthover@apple.com>
Wed, 8 May 2019 10:59:08 +0000 (10:59 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 8 May 2019 10:59:08 +0000 (10:59 +0000)
commita837f1edd83b96b35c10bd5429e5c3811e8bf29f
tree9db08791d87b185a30e36266dc149addb4002cb6
parentcce7a563938ee615a4a176c8dcc3dd8514878ac9
ARM: disallow SP as Rn for Thumb2 TST & TEQ instructions

Using SP in this position is unpredictable in ARMv7. CMP and CMN are not
affected, and of course v8 relaxes this requirement, but that's handled
elsewhere.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360242 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrThumb2.td
test/CodeGen/ARM/GlobalISel/thumb-select-br.mir
test/CodeGen/ARM/GlobalISel/thumb-select-select.mir
test/MC/ARM/thumb2-diagnostics.s