From 311730494e22c6d2453ff20232c5b6e8af0b4a08 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Thu, 2 Jan 2014 15:50:02 +0000 Subject: [PATCH] [arm] Add softvfp to supported FPU names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198313 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMFPUName.def | 1 + lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp | 3 +++ test/MC/ARM/directive-fpu-softvfp.s | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100644 test/MC/ARM/directive-fpu-softvfp.s diff --git a/lib/Target/ARM/ARMFPUName.def b/lib/Target/ARM/ARMFPUName.def index 9a1bbe703d9..1fef3b3bc5e 100644 --- a/lib/Target/ARM/ARMFPUName.def +++ b/lib/Target/ARM/ARMFPUName.def @@ -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 diff --git a/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp b/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp index 39bcbf3e529..05b4e2e22a8 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp @@ -747,6 +747,9 @@ void ARMTargetELFStreamer::emitFPUDefaultAttributes() { /* OverwriteExisting= */ false); break; + case ARM::SOFTVFP: + break; + default: report_fatal_error("Unknown FPU: " + Twine(FPU)); break; diff --git a/test/MC/ARM/directive-fpu-softvfp.s b/test/MC/ARM/directive-fpu-softvfp.s new file mode 100644 index 00000000000..f10845fcb34 --- /dev/null +++ b/test/MC/ARM/directive-fpu-softvfp.s @@ -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 -- 2.34.1