[arm] Add softvfp to supported FPU names.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Logan Chien 2014-01-02 15:50:02 +00:00
parent a21a8a863d
commit 311730494e
3 changed files with 12 additions and 0 deletions

View File

@ -28,5 +28,6 @@ ARM_FPU_NAME("neon", NEON)
ARM_FPU_NAME("neon-vfpv4", NEON_VFPV4)
ARM_FPU_NAME("neon-fp-armv8", NEON_FP_ARMV8)
ARM_FPU_NAME("crypto-neon-fp-armv8", CRYPTO_NEON_FP_ARMV8)
ARM_FPU_NAME("softvfp", SOFTVFP)
#undef ARM_FPU_NAME

View File

@ -747,6 +747,9 @@ void ARMTargetELFStreamer::emitFPUDefaultAttributes() {
/* OverwriteExisting= */ false);
break;
case ARM::SOFTVFP:
break;
default:
report_fatal_error("Unknown FPU: " + Twine(FPU));
break;

View File

@ -0,0 +1,8 @@
@ RUN: llvm-mc < %s -triple armv7-unknown-linux-gnueabi -filetype=obj -o /dev/null
@ Check softvfp as the FPU name.
@ Expected result: The integrated-as should be able to assemble this file
@ without problems.
.fpu softvfp