[llvm-commits] [llvm] r126882 - /llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
Renato Golin
renato.golin at arm.com
Wed Mar 2 13:20:09 PST 2011
Author: rengolin
Date: Wed Mar 2 15:20:09 2011
New Revision: 126882
URL: http://llvm.org/viewvc/llvm-project?rev=126882&view=rev
Log:
Fixing a bug when printing fpu text to object file. Patch by Mans Rullgard.
Modified:
llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp?rev=126882&r1=126881&r2=126882&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmPrinter.cpp Wed Mar 2 15:20:09 2011
@@ -498,7 +498,7 @@
ARMBuildAttrs::Allowed);
}
- if (Subtarget->hasNEON()) {
+ if (Subtarget->hasNEON() && emitFPU) {
/* NEON is not exactly a VFP architecture, but GAS emit one of
* neon/vfpv3/vfpv2 for .fpu parameters */
AttrEmitter->EmitTextAttribute(ARMBuildAttrs::Advanced_SIMD_arch, "neon");
More information about the llvm-commits
mailing list