diff options
author | Joey Gouly <joey.gouly@arm.com> | 2013-09-13 11:51:52 +0000 |
---|---|---|
committer | Joey Gouly <joey.gouly@arm.com> | 2013-09-13 11:51:52 +0000 |
commit | 8312905790f2250d7c807b4c153be7d64ab22572 (patch) | |
tree | 644b1a8dadf7cafb374e9f0fa5ffe77101d1641d /lib/Target/ARM/ARMAsmPrinter.cpp | |
parent | 2c9d79beee7456c1404f474cdaaa8ec56ff9a5e6 (diff) | |
download | external_llvm-8312905790f2250d7c807b4c153be7d64ab22572.zip external_llvm-8312905790f2250d7c807b4c153be7d64ab22572.tar.gz external_llvm-8312905790f2250d7c807b4c153be7d64ab22572.tar.bz2 |
[ARMv8] Emit the proper .fpu directive.
Patch by Bradley Smith!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190683 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 0e94045..ff43d46 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -807,8 +807,11 @@ void ARMAsmPrinter::emitAttributes() { if (Subtarget->hasNEON() && emitFPU) { /* NEON is not exactly a VFP architecture, but GAS emit one of - * neon/neon-vfpv4/vfpv3/vfpv2 for .fpu parameters */ - if (Subtarget->hasVFP4()) + * neon/neon-fp-armv8/neon-vfpv4/vfpv3/vfpv2 for .fpu parameters */ + if (Subtarget->hasV8FP()) + AttrEmitter->EmitTextAttribute(ARMBuildAttrs::Advanced_SIMD_arch, + "neon-fp-armv8"); + else if (Subtarget->hasVFP4()) AttrEmitter->EmitTextAttribute(ARMBuildAttrs::Advanced_SIMD_arch, "neon-vfpv4"); else @@ -823,7 +826,7 @@ void ARMAsmPrinter::emitAttributes() { AttrEmitter->EmitAttribute(ARMBuildAttrs::VFP_arch, ARMBuildAttrs::AllowV8FPA); if (emitFPU) - AttrEmitter->EmitTextAttribute(ARMBuildAttrs::VFP_arch, "v8fp"); + AttrEmitter->EmitTextAttribute(ARMBuildAttrs::VFP_arch, "fp-armv8"); /* VFPv4 + .fpu */ } else if (Subtarget->hasVFP4()) { AttrEmitter->EmitAttribute(ARMBuildAttrs::VFP_arch, |