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)
commit206d1160ce52769b579c4392b4208e39962dc951
tree7c67733ae829320858d5feed72464b8af88c2a33
parent7f933f4c5ecd61a6ea3411f13c79ac5ccf82eb3b
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.

llvm-svn: 227584
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/test/MC/ARM/pr22395.s [new file with mode: 0644]