[arm] Implement eabi_attribute, cpu, and fpu directives.
This commit allows the ARM integrated assembler to parse
and assemble the code with .eabi_attribute, .cpu, and
.fpu directives.
To implement the feature, this commit moves the code from
AttrEmitter to ARMTargetStreamers, and several new test
cases related to cortex-m4, cortex-r5, and cortex-a15 are
added.
Besides, this commit also change the Subtarget->isFPOnlySP()
to Subtarget->hasD16() to match the usage of .fpu directive.
This commit changes the test cases:
* Several .eabi_attribute directives in
2010-09-29-mc-asm-header-test.ll are removed because the .fpu
directive already cover the functionality.
* In the Cortex-A15 test case, the value for
Tag_Advanced_SIMD_arch has be changed from 1 to 2,
which is more precise.
llvm-svn: 193524
2013-10-29 01:51:12 +08:00
|
|
|
//===-- ARMFPUName.def - List of the ARM FPU names --------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file contains the list of the supported ARM FPU names.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// NOTE: NO INCLUDE GUARD DESIRED!
|
|
|
|
|
|
|
|
#ifndef ARM_FPU_NAME
|
|
|
|
#error "You must define ARM_FPU_NAME(NAME, ID) before including ARMFPUName.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
ARM_FPU_NAME("vfp", VFP)
|
|
|
|
ARM_FPU_NAME("vfpv2", VFPV2)
|
|
|
|
ARM_FPU_NAME("vfpv3", VFPV3)
|
|
|
|
ARM_FPU_NAME("vfpv3-d16", VFPV3_D16)
|
|
|
|
ARM_FPU_NAME("vfpv4", VFPV4)
|
|
|
|
ARM_FPU_NAME("vfpv4-d16", VFPV4_D16)
|
|
|
|
ARM_FPU_NAME("fp-armv8", FP_ARMV8)
|
|
|
|
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)
|
2014-01-02 23:50:02 +08:00
|
|
|
ARM_FPU_NAME("softvfp", SOFTVFP)
|
[arm] Implement eabi_attribute, cpu, and fpu directives.
This commit allows the ARM integrated assembler to parse
and assemble the code with .eabi_attribute, .cpu, and
.fpu directives.
To implement the feature, this commit moves the code from
AttrEmitter to ARMTargetStreamers, and several new test
cases related to cortex-m4, cortex-r5, and cortex-a15 are
added.
Besides, this commit also change the Subtarget->isFPOnlySP()
to Subtarget->hasD16() to match the usage of .fpu directive.
This commit changes the test cases:
* Several .eabi_attribute directives in
2010-09-29-mc-asm-header-test.ll are removed because the .fpu
directive already cover the functionality.
* In the Cortex-A15 test case, the value for
Tag_Advanced_SIMD_arch has be changed from 1 to 2,
which is more precise.
llvm-svn: 193524
2013-10-29 01:51:12 +08:00
|
|
|
|
|
|
|
#undef ARM_FPU_NAME
|