mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
Merge the directive-eabi_attribute.s and directive-eabi_attribute-2.s tests.
test/MC/ARM/directive-eabi_attribute.s had gotten out-of-sync with test/MC/ARM/directive-eabi_attribute-2.s. The former tests the encoding of build attributes in object files, and the latter the encoding in assembly files. Since both these tests need to be updated at the same time, it makes sense to combine them into a single test. The object file encodings are being checked against the ouput of -arm-attributes rather than by direct byte comparisons which makes for easier reading. Change-Id: I0075de506ae5626fb2fa235383fe5ce6a65a15a9 llvm-svn: 221155
This commit is contained in:
parent
2def7a3218
commit
c2887c347f
@ -1,98 +0,0 @@
|
||||
@ RUN: llvm-mc -triple armv7-elf -filetype asm -o - %s | FileCheck %s
|
||||
|
||||
.syntax unified
|
||||
.thumb
|
||||
|
||||
.eabi_attribute Tag_CPU_raw_name, "Cortex-A9"
|
||||
@ CHECK: .eabi_attribute 4, "Cortex-A9"
|
||||
.eabi_attribute Tag_CPU_name, "cortex-a9"
|
||||
@ CHECK: .cpu cortex-a9
|
||||
.eabi_attribute Tag_CPU_arch, 10
|
||||
@ CHECK: .eabi_attribute 6, 10
|
||||
.eabi_attribute Tag_CPU_arch_profile, 'A'
|
||||
@ CHECK: .eabi_attribute 7, 65
|
||||
.eabi_attribute Tag_ARM_ISA_use, 0
|
||||
@ CHECK: .eabi_attribute 8, 0
|
||||
.eabi_attribute Tag_THUMB_ISA_use, 2
|
||||
@ CHECK: .eabi_attribute 9, 2
|
||||
.eabi_attribute Tag_FP_arch, 3
|
||||
@ CHECK: .eabi_attribute 10, 3
|
||||
.eabi_attribute Tag_WMMX_arch, 0
|
||||
@ CHECK: .eabi_attribute 11, 0
|
||||
.eabi_attribute Tag_Advanced_SIMD_arch, 1
|
||||
@ CHECK: .eabi_attribute 12, 1
|
||||
.eabi_attribute Tag_PCS_config, 2
|
||||
@ CHECK: .eabi_attribute 13, 2
|
||||
.eabi_attribute Tag_ABI_PCS_R9_use, 0
|
||||
@ CHECK: .eabi_attribute 14, 0
|
||||
.eabi_attribute Tag_ABI_PCS_RW_data, 0
|
||||
@ CHECK: .eabi_attribute 15, 0
|
||||
.eabi_attribute Tag_ABI_PCS_RO_data, 0
|
||||
@ CHECK: .eabi_attribute 16, 0
|
||||
.eabi_attribute Tag_ABI_PCS_GOT_use, 0
|
||||
@ CHECK: .eabi_attribute 17, 0
|
||||
.eabi_attribute Tag_ABI_PCS_wchar_t, 4
|
||||
@ CHECK: .eabi_attribute 18, 4
|
||||
.eabi_attribute Tag_ABI_FP_rounding, 1
|
||||
@ CHECK: .eabi_attribute 19, 1
|
||||
.eabi_attribute Tag_ABI_FP_denormal, 2
|
||||
@ CHECK: .eabi_attribute 20, 2
|
||||
.eabi_attribute Tag_ABI_FP_exceptions, 1
|
||||
@ CHECK: .eabi_attribute 21, 1
|
||||
.eabi_attribute Tag_ABI_FP_user_exceptions, 1
|
||||
@ CHECK: .eabi_attribute 22, 1
|
||||
.eabi_attribute Tag_ABI_FP_number_model, 3
|
||||
@ CHECK: .eabi_attribute 23, 3
|
||||
.eabi_attribute Tag_ABI_align_needed, 1
|
||||
@ CHECK: .eabi_attribute 24, 1
|
||||
.eabi_attribute Tag_ABI_align_preserved, 2
|
||||
@ CHECK: .eabi_attribute 25, 2
|
||||
.eabi_attribute Tag_ABI_enum_size, 3
|
||||
@ CHECK: .eabi_attribute 26, 3
|
||||
.eabi_attribute Tag_ABI_HardFP_use, 0
|
||||
@ CHECK: .eabi_attribute 27, 0
|
||||
.eabi_attribute Tag_ABI_VFP_args, 1
|
||||
@ CHECK: .eabi_attribute 28, 1
|
||||
.eabi_attribute Tag_ABI_WMMX_args, 0
|
||||
@ CHECK: .eabi_attribute 29, 0
|
||||
.eabi_attribute Tag_ABI_FP_optimization_goals, 1
|
||||
@ CHECK: .eabi_attribute 31, 1
|
||||
.eabi_attribute Tag_compatibility, 1
|
||||
@ CHECK: .eabi_attribute 32, 1
|
||||
.eabi_attribute Tag_compatibility, 1, "aeabi"
|
||||
@ CHECK: .eabi_attribute 32, 1, "aeabi"
|
||||
.eabi_attribute Tag_CPU_unaligned_access, 0
|
||||
@ CHECK: .eabi_attribute 34, 0
|
||||
.eabi_attribute Tag_FP_HP_extension, 0
|
||||
@ CHECK: .eabi_attribute 36, 0
|
||||
.eabi_attribute Tag_ABI_FP_16bit_format, 0
|
||||
@ CHECK: .eabi_attribute 38, 0
|
||||
.eabi_attribute Tag_MPextension_use, 0
|
||||
@ CHECK: .eabi_attribute 42, 0
|
||||
.eabi_attribute Tag_DIV_use, 0
|
||||
@ CHECK: .eabi_attribute 44, 0
|
||||
.eabi_attribute Tag_nodefaults, 0
|
||||
@ CHECK: .eabi_attribute 64, 0
|
||||
.eabi_attribute Tag_also_compatible_with, "gnu"
|
||||
@ CHECK: .eabi_attribute 65, "gnu"
|
||||
.eabi_attribute Tag_T2EE_use, 0
|
||||
@ CHECK: .eabi_attribute 66, 0
|
||||
.eabi_attribute Tag_conformance, "2.09"
|
||||
@ CHECK: .eabi_attribute 67, "2.09"
|
||||
.eabi_attribute Tag_Virtualization_use, 0
|
||||
@ CHECK: .eabi_attribute 68, 0
|
||||
|
||||
@ ===--- Compatibility Checks ---===
|
||||
|
||||
.eabi_attribute Tag_ABI_align8_needed, 1
|
||||
@ CHECK: .eabi_attribute 24, 1
|
||||
.eabi_attribute Tag_ABI_align8_preserved, 2
|
||||
@ CHECK: .eabi_attribute 25, 2
|
||||
|
||||
@ ===--- GNU AS Compatibility Checks ---===
|
||||
|
||||
.eabi_attribute 2 * 2 + 1, "cortex-a9"
|
||||
@ CHECK: .cpu cortex-a9
|
||||
.eabi_attribute 2 * 2 + 2, 5 * 2
|
||||
@ CHECK: .eabi_attribute 6, 10
|
||||
|
@ -1,56 +1,158 @@
|
||||
@ RUN: llvm-mc -triple armv7-elf -filetype asm -o - %s | FileCheck %s
|
||||
@ RUN: llvm-mc < %s -triple armv7-unknown-linux-gnueabi -filetype=obj -o - \
|
||||
@ RUN: | llvm-readobj -s -sd | FileCheck %s
|
||||
@ RUN: | llvm-readobj -arm-attributes | FileCheck %s --check-prefix=CHECK-OBJ
|
||||
|
||||
@ CHECK: Name: .ARM.attribute
|
||||
@ CHECK: SectionData (
|
||||
.syntax unified
|
||||
.thumb
|
||||
|
||||
@ <format-version>
|
||||
@ CHECK: 41
|
||||
@ CHECK-OBJ: FormatVersion: 0x41
|
||||
|
||||
@ <section-length>
|
||||
@ CHECK: 250000 00
|
||||
@ CHECK-OBJ: SectionLength: 122
|
||||
|
||||
@ <vendor-name> "aeabi\0"
|
||||
@ CHECK: 616561 626900
|
||||
@ CHECK-OBJ: Vendor: aeabi
|
||||
|
||||
@ <file-tag>
|
||||
@ CHECK: 01
|
||||
@ CHECK-OBJ: Tag: Tag_File (0x1)
|
||||
|
||||
@ <size>
|
||||
@ CHECK: 1B000000
|
||||
@ CHECK-OBJ: Size: 112
|
||||
|
||||
@ <attribute>*
|
||||
.eabi_attribute Tag_CPU_raw_name, "Cortex-A9"
|
||||
@ CHECK: .eabi_attribute 4, "Cortex-A9"
|
||||
.eabi_attribute Tag_CPU_name, "cortex-a9"
|
||||
@ CHECK: .cpu cortex-a9
|
||||
.eabi_attribute Tag_CPU_arch, 10
|
||||
@ CHECK: .eabi_attribute 6, 10
|
||||
@ CHECK-OBJ: Tag: 6
|
||||
@ CHECK-OBJ-NEXT: Value: 10
|
||||
@ CHECK-OBJ-NEXT: TagName: CPU_arch
|
||||
@ CHECK-OBJ-NEXT: Description: ARM v7
|
||||
.eabi_attribute Tag_CPU_arch_profile, 'A'
|
||||
@ CHECK: .eabi_attribute 7, 65
|
||||
@ CHECK-OBJ: Tag: 7
|
||||
@ CHECK-OBJ-NEXT: Value: 65
|
||||
@ CHECK-OBJ-NEXT: TagName: CPU_arch_profile
|
||||
@ CHECK-OBJ-NEXT: Description: Application
|
||||
.eabi_attribute Tag_ARM_ISA_use, 0
|
||||
@ CHECK: .eabi_attribute 8, 0
|
||||
@ CHECK-OBJ: Tag: 8
|
||||
@ CHECK-OBJ-NEXT: Value: 0
|
||||
@ CHECK-OBJ-NEXT: TagName: ARM_ISA_use
|
||||
@ CHECK-OBJ-NEXT: Description: Not Permitted
|
||||
.eabi_attribute Tag_THUMB_ISA_use, 2
|
||||
@ CHECK: .eabi_attribute 9, 2
|
||||
@ CHECK-OBJ: Tag: 9
|
||||
@ CHECK-OBJ-NEXT: Value: 2
|
||||
@ CHECK-OBJ-NEXT: TagName: THUMB_ISA_use
|
||||
@ CHECK-OBJ-NEXT: Description: Thumb-2
|
||||
.eabi_attribute Tag_FP_arch, 3
|
||||
@ CHECK: .eabi_attribute 10, 3
|
||||
@ CHECK-OBJ: Tag: 10
|
||||
@ CHECK-OBJ-NEXT: Value: 3
|
||||
@ CHECK-OBJ-NEXT: TagName: FP_arch
|
||||
@ CHECK-OBJ-NEXT: Description: VFPv3
|
||||
.eabi_attribute Tag_WMMX_arch, 0
|
||||
@ CHECK: .eabi_attribute 11, 0
|
||||
.eabi_attribute Tag_Advanced_SIMD_arch, 1
|
||||
@ CHECK: .eabi_attribute 12, 1
|
||||
@ CHECK-OBJ: Tag: 12
|
||||
@ CHECK-OBJ-NEXT: Value: 1
|
||||
@ CHECK-OBJ-NEXT: TagName: Advanced_SIMD_arch
|
||||
@ CHECK-OBJ-NEXT: Description: NEONv1
|
||||
.eabi_attribute Tag_PCS_config, 2
|
||||
@ CHECK: .eabi_attribute 13, 2
|
||||
.eabi_attribute Tag_ABI_PCS_R9_use, 0
|
||||
@ CHECK: .eabi_attribute 14, 0
|
||||
.eabi_attribute Tag_ABI_PCS_RW_data, 0
|
||||
@ CHECK: .eabi_attribute 15, 0
|
||||
.eabi_attribute Tag_ABI_PCS_RO_data, 0
|
||||
@ CHECK: .eabi_attribute 16, 0
|
||||
.eabi_attribute Tag_ABI_PCS_GOT_use, 0
|
||||
@ CHECK: .eabi_attribute 17, 0
|
||||
.eabi_attribute Tag_ABI_PCS_wchar_t, 4
|
||||
@ CHECK: .eabi_attribute 18, 4
|
||||
.eabi_attribute Tag_ABI_FP_rounding, 1
|
||||
@ CHECK: .eabi_attribute 19, 1
|
||||
.eabi_attribute Tag_ABI_FP_denormal, 2
|
||||
@ CHECK: .eabi_attribute 20, 2
|
||||
@ CHECK-OBJ: Tag: 20
|
||||
@ CHECK-OBJ-NEXT: Value: 2
|
||||
@ CHECK-OBJ-NEXT: TagName: ABI_FP_denormal
|
||||
@ CHECK-OBJ-NEXT: Description: Sign Only
|
||||
.eabi_attribute Tag_ABI_FP_exceptions, 1
|
||||
@ CHECK: .eabi_attribute 21, 1
|
||||
@ CHECK-OBJ: Tag: 21
|
||||
@ CHECK-OBJ-NEXT: Value: 1
|
||||
@ CHECK-OBJ-NEXT: TagName: ABI_FP_exceptions
|
||||
@ CHECK-OBJ-NEXT: Description: IEEE-754
|
||||
.eabi_attribute Tag_ABI_FP_user_exceptions, 1
|
||||
@ CHECK: .eabi_attribute 22, 1
|
||||
.eabi_attribute Tag_ABI_FP_number_model, 3
|
||||
@ CHECK: .eabi_attribute 23, 3
|
||||
@ CHECK-OBJ: Tag: 23
|
||||
@ CHECK-OBJ-NEXT: Value: 3
|
||||
@ CHECK-OBJ-NEXT: TagName: ABI_FP_number_model
|
||||
@ CHECK-OBJ-NEXT: Description: IEEE-754
|
||||
.eabi_attribute Tag_ABI_align_needed, 1
|
||||
@ CHECK: .eabi_attribute 24, 1
|
||||
@ CHECK-OBJ: Tag: 24
|
||||
@ CHECK-OBJ-NEXT: Value: 1
|
||||
@ CHECK-OBJ-NEXT: TagName: ABI_align_needed
|
||||
@ CHECK-OBJ-NEXT: Description: 8-byte alignment
|
||||
.eabi_attribute Tag_ABI_align_preserved, 2
|
||||
@ CHECK: .eabi_attribute 25, 2
|
||||
@ CHECK-OBJ: Tag: 25
|
||||
@ CHECK-OBJ-NEXT: Value: 2
|
||||
@ CHECK-OBJ-NEXT: TagName: ABI_align_preserved
|
||||
@ CHECK-OBJ-NEXT: Description: 8-byte data and code alignment
|
||||
.eabi_attribute Tag_ABI_enum_size, 3
|
||||
@ CHECK: .eabi_attribute 26, 3
|
||||
.eabi_attribute Tag_ABI_HardFP_use, 0
|
||||
@ CHECK: .eabi_attribute 27, 0
|
||||
.eabi_attribute Tag_ABI_VFP_args, 1
|
||||
@ CHECK: .eabi_attribute 28, 1
|
||||
.eabi_attribute Tag_ABI_WMMX_args, 0
|
||||
@ CHECK: .eabi_attribute 29, 0
|
||||
.eabi_attribute Tag_ABI_FP_optimization_goals, 1
|
||||
@ CHECK: .eabi_attribute 31, 1
|
||||
.eabi_attribute Tag_compatibility, 1
|
||||
@ CHECK: .eabi_attribute 32, 1
|
||||
.eabi_attribute Tag_compatibility, 1, "aeabi"
|
||||
@ CHECK: .eabi_attribute 32, 1, "aeabi"
|
||||
.eabi_attribute Tag_CPU_unaligned_access, 0
|
||||
@ CHECK: .eabi_attribute 34, 0
|
||||
.eabi_attribute Tag_FP_HP_extension, 0
|
||||
@ CHECK: .eabi_attribute 36, 0
|
||||
.eabi_attribute Tag_ABI_FP_16bit_format, 0
|
||||
@ CHECK: .eabi_attribute 38, 0
|
||||
.eabi_attribute Tag_MPextension_use, 0
|
||||
@ CHECK: .eabi_attribute 42, 0
|
||||
.eabi_attribute Tag_DIV_use, 0
|
||||
@ CHECK: .eabi_attribute 44, 0
|
||||
.eabi_attribute Tag_nodefaults, 0
|
||||
@ CHECK: .eabi_attribute 64, 0
|
||||
.eabi_attribute Tag_also_compatible_with, "gnu"
|
||||
@ CHECK: .eabi_attribute 65, "gnu"
|
||||
.eabi_attribute Tag_T2EE_use, 0
|
||||
@ CHECK: .eabi_attribute 66, 0
|
||||
.eabi_attribute Tag_conformance, "2.09"
|
||||
@ CHECK: .eabi_attribute 67, "2.09"
|
||||
.eabi_attribute Tag_Virtualization_use, 0
|
||||
@ CHECK: .eabi_attribute 68, 0
|
||||
|
||||
.eabi_attribute 6, 10
|
||||
@ CHECK: 060A
|
||||
@ ===--- Compatibility Checks ---===
|
||||
|
||||
.eabi_attribute 7, 65
|
||||
@ CHECK: 0741
|
||||
.eabi_attribute Tag_ABI_align8_needed, 1
|
||||
@ CHECK: .eabi_attribute 24, 1
|
||||
.eabi_attribute Tag_ABI_align8_preserved, 2
|
||||
@ CHECK: .eabi_attribute 25, 2
|
||||
|
||||
.eabi_attribute 8, 1
|
||||
@ CHECK: 0801
|
||||
@ ===--- GNU AS Compatibility Checks ---===
|
||||
|
||||
.eabi_attribute 9, 2
|
||||
@ CHECK: 0902
|
||||
|
||||
.eabi_attribute 10, 3
|
||||
@ CHECK: 0A03
|
||||
|
||||
.eabi_attribute 12, 1
|
||||
@ CHECK: 0C01
|
||||
|
||||
.eabi_attribute 20, 1
|
||||
@ CHECK: 1401
|
||||
|
||||
.eabi_attribute 21, 1
|
||||
@ CHECK: 1501
|
||||
|
||||
.eabi_attribute 23, 3
|
||||
@ CHECK: 1703
|
||||
|
||||
.eabi_attribute 24, 1
|
||||
@ CHECK: 1801
|
||||
|
||||
.eabi_attribute 25, 1
|
||||
@ CHECK: 1901
|
||||
@ CHECK: )
|
||||
.eabi_attribute 2 * 2 + 1, "cortex-a9"
|
||||
@ CHECK: .cpu cortex-a9
|
||||
.eabi_attribute 2 * 2 + 2, 5 * 2
|
||||
@ CHECK: .eabi_attribute 6, 10
|
||||
|
Loading…
Reference in New Issue
Block a user