[ARM] Disabling vfp4 should disable fp16
authorJohn Brawn <john.brawn@arm.com>
Fri, 12 Jun 2015 09:38:51 +0000 (09:38 +0000)
committerJohn Brawn <john.brawn@arm.com>
Fri, 12 Jun 2015 09:38:51 +0000 (09:38 +0000)
commit14d0411acb231b372a89c67a60cb44a6cc918e02
treedd70a8e6a4e8af54c40c28ca73279cd8c6f115f4
parent5ac49ca9d62f488c7524c3535890fdce739c2b33
[ARM] Disabling vfp4 should disable fp16

ARMTargetParser::getFPUFeatures should disable fp16 whenever it
disables vfp4, as otherwise something like -mcpu=cortex-a7 -mfpu=none
leaves us with fp16 enabled (though the only effect that will have is
a wrong build attribute).

Differential Revision: http://reviews.llvm.org/D10397

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239599 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/TargetParser.cpp
test/CodeGen/ARM/build-attributes.ll