[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
|
|
|
@ RUN: llvm-mc < %s -triple armv7-unknown-linux-gnueabi -filetype=obj -o - \
|
|
|
|
@ RUN: | llvm-readobj -s -sd | FileCheck %s
|
|
|
|
|
|
|
|
@ CHECK: Name: .ARM.attribute
|
|
|
|
@ CHECK: SectionData (
|
|
|
|
|
|
|
|
@ <format-version>
|
|
|
|
@ CHECK: 41
|
|
|
|
|
|
|
|
@ <section-length>
|
|
|
|
@ CHECK: 1A0000 00
|
|
|
|
|
|
|
|
@ <vendor-name> "aeabi\0"
|
|
|
|
@ CHECK: 616561 626900
|
|
|
|
|
|
|
|
@ <file-tag>
|
|
|
|
@ CHECK: 01
|
|
|
|
|
|
|
|
@ <size>
|
|
|
|
@ CHECK: 10000000
|
|
|
|
|
|
|
|
.cpu cortex-a8
|
2014-11-27 20:13:56 +08:00
|
|
|
@ CHECK: 05636F72 7465782D 613800
|
[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
|
|
|
|
|
|
|
@ CHECK: )
|