mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
updated patch for the ARM fused multiply add/sub
In this update: - I assumed neon2 does not imply vfpv4, but neon and vfpv4 imply neon2. - I kept setting .fpu=neon-vfpv4 code attribute because that is what the assembler understands. Patch by Ana Pazos <apazos@codeaurora.org> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -732,10 +732,10 @@ 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->hasNEONVFP4())
|
||||
if (Subtarget->hasNEON2())
|
||||
AttrEmitter->EmitTextAttribute(ARMBuildAttrs::Advanced_SIMD_arch, "neon-vfpv4");
|
||||
else
|
||||
AttrEmitter->EmitTextAttribute(ARMBuildAttrs::Advanced_SIMD_arch, "neon");
|
||||
AttrEmitter->EmitTextAttribute(ARMBuildAttrs::Advanced_SIMD_arch, "neon");
|
||||
/* If emitted for NEON, omit from VFP below, since you can have both
|
||||
* NEON and VFP in build attributes but only one .fpu */
|
||||
emitFPU = false;
|
||||
|
||||
Reference in New Issue
Block a user