ARM: allow cortex-m0 to use hint instructions
authorTim Northover <tnorthover@apple.com>
Mon, 7 Oct 2013 11:10:47 +0000 (11:10 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 7 Oct 2013 11:10:47 +0000 (11:10 +0000)
commitcf3e4cb29a5fd485f11354060bb7a99e8cfdaf09
tree9d2dde8a3a23df35f617e28ab1e8a04e099f2620
parentae06a63be5a1279739e0c8a2006e72f4bc687d57
ARM: allow cortex-m0 to use hint instructions

The hint instructions ("nop", "yield", etc) are mostly Thumb2-only, but have
been ported across to the v6M architecture. Fortunately, v6M seems to sit
nicely between v6 (thumb-1 only) and v6T2, so we can add a feature for it
fairly easily.

rdar://problem/15144406

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192097 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARM.td
lib/Target/ARM/ARMInstrInfo.td
lib/Target/ARM/ARMInstrThumb.td
lib/Target/ARM/ARMSubtarget.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/thumb-diagnostics.s
test/MC/ARM/thumb-hints.s [new file with mode: 0644]
test/MC/ARM/thumb-nop.s [deleted file]