ARM: correct handling of .fpu directive
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 30 Jan 2015 17:58:25 +0000 (17:58 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 30 Jan 2015 17:58:25 +0000 (17:58 +0000)
commit8baa31e81c5294b9d8b0e93b7cb211009ec7457b
tree227c4ea40e9a327776beca8dd6e20f24096178a2
parent3460950d1522948415925347806e8b4cf149ecb2
ARM: correct handling of .fpu directive

The FPU directive permits the user to switch the target FPU, enabling
instructions that would be otherwise unavailable.  However, when configuring the
new subtarget features, we would not enable the implied functions for newer
FPUs.  This would result in invalid rejection of valid input.  Ensure that we
inherit the implied FPU functionality when enabling newer versions of the FPU.
Fortunately, these are mostly hierarchical, unlike the CPUs.

Addresses PR22395.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227584 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/pr22395.s [new file with mode: 0644]