ARM: diagnose deprecated syntax
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 16 Dec 2014 05:53:25 +0000 (05:53 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 16 Dec 2014 05:53:25 +0000 (05:53 +0000)
commitfbdea180c0e9a42026ea4389a2b96792fc00169d
treef962eee9848e28cf4e2aa26c7432ee679689c87b
parentedfeeb6d70742455a6058a4e3e3c2ed0d5acedaa
ARM: diagnose deprecated syntax

The use of SP and PC in the register list for stores is deprecated on ARM
(ARM ARM A.8.8.199):

  ARM deprecates the use of ARM instructions that include the SP or the PC in
  the list.

Provide a deprecation warning from the assembler in the case that the syntax is
ever seen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224319 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
test/MC/ARM/arm-store-deprecated.s [new file with mode: 0644]