ARM: diagnose ARM/Thumb assembly switches on CPUs only supporting one.
authorTim Northover <tnorthover@apple.com>
Mon, 10 Jun 2013 23:20:58 +0000 (23:20 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 10 Jun 2013 23:20:58 +0000 (23:20 +0000)
commit9bdd78501484a1add2d8a757fd29960dd9fc9de7
treea0de733750c030b3280711231515852051a38bcc
parent45dec48dc3725a8e5ca5cfdeeed941eea2e456f1
ARM: diagnose ARM/Thumb assembly switches on CPUs only supporting one.

Some ARM CPUs only support ARM mode (ancient v4 ones, for example) and some
only support Thumb mode (M-class ones currently). This makes sure such CPUs
default to the correct mode and makes the AsmParser diagnose an attempt to
switch modes incorrectly.

rdar://14024354

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183710 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARM.td
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
test/MC/ARM/arm-thumb-cpus-default.s [new file with mode: 0644]
test/MC/ARM/arm-thumb-cpus.s [new file with mode: 0644]
test/MC/ARM/elf-thumbfunc-reloc.s
test/MC/ARM/mapping-within-section.s
test/MC/ARM/multi-section-mapping.s