An ELFObjectFile can now create SubtargetFeatures from the available ARM build attributes, in a similar manner to MIPS. I've moved the MIPS code into its own function and the ARM handler also has a separate function. Differential Revision: https://reviews.llvm.org/D28291 llvm-svn: 292403
10 lines
237 B
ArmAsm
10 lines
237 B
ArmAsm
@ RUN: llvm-mc < %s -triple armv6 -mattr=+vfp2 -filetype=obj | llvm-objdump -triple=arm -d - | FileCheck %s
|
|
|
|
.eabi_attribute Tag_FP_arch, 2 // VFP2
|
|
|
|
vfp2:
|
|
vadd.f32 s0, s1, s2
|
|
|
|
@CHECK-LABEL: vfp2
|
|
@CHECK: 81 0a 30 ee vadd.f32 s0, s1, s2
|