llvm.org GIT mirror llvm / 91ec991
ARM: change attribute tests to use parsed form This makes the tests more readable by using the -arm-attributes decoding support in llvm-readobj since that is now available. Change the invocation commands to be similar to other test and use a more precise triple (the tests only require ARM EABI support). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201029 91177308-0d34-0410-b5e6-96231b3b80d8 Saleem Abdulrasool 6 years ago
28 changed file(s) with 640 addition(s) and 525 deletion(s). Raw diff Collapse all Expand all
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv2 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv2
1212
1313 @ CHECK-ASM: .arch armv2
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 23
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05320006 010801 |.2.....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 2
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v4
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
29
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv2a architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv2a
1212
1313 @ CHECK-ASM: .arch armv2a
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 24
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41170000 00616561 62690001 0D000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05324100 06010801 |.2A.....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 2A
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v4
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
29
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv3 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv3
1212
1313 @ CHECK-ASM: .arch armv3
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 23
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05330006 010801 |.3.....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 3
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v4
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
29
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv3m architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv3m
1212
1313 @ CHECK-ASM: .arch armv3m
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 24
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41170000 00616561 62690001 0D000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05334D00 06010801 |.3M.....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 3M
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v4
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
29
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv4 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv4
1212
1313 @ CHECK-ASM: .arch armv4
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x{{[0-9A-F]*}}
21 @ CHECK-OBJ: Size: 23
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05340006 010801 |.4.....|
29 @ CHECK-OBJ: )
30
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 4
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v4
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
3129
3230 @ Check that multiplication is supported
3331 mul r4, r5, r6
3634 umull r4, r5, r6, r3
3735 smlal r4, r5, r6, r3
3836 umlal r4, r5, r6, r3
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv4t architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv4t
1212
1313 @ CHECK-ASM: .arch armv4t
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 26
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41190000 00616561 62690001 0F000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05345400 06020801 0901 |.4T.......|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 4T
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v4T
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv5 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv5
1212
1313 @ CHECK-ASM: .arch armv5
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 23
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05350006 030801 |.5.....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 5
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v5T
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
29
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv5t architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv5t
1212
1313 @ CHECK-ASM: .arch armv5t
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 26
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41190000 00616561 62690001 0F000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05355400 06030801 0901 |.5T.......|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 5T
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v5T
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv5te architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv5te
1212
1313 @ CHECK-ASM: .arch armv5te
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 27
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411A0000 00616561 62690001 10000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05355445 00060408 010901 |.5TE.......|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 5TE
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v5TE
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6-m architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv6-m
1212
1313 @ CHECK-ASM: .arch armv6-m
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 25
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41180000 00616561 62690001 0E000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05362D4D 00060B09 01 |.6-M.....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 6-M
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v6-M
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: THUMB_ISA_use
26 @ CHECK-ATTR: Description: Thumb-1
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
29
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv6
1212
1313 @ CHECK-ASM: .arch armv6
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 25
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41180000 00616561 62690001 0E000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05360006 06080109 01 |.6.......|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 6
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v6
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6j architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv6j
1212
1313 @ CHECK-ASM: .arch armv6j
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 26
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41190000 00616561 62690001 0F000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05364A00 06060801 0901 |.6J.......|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 6J
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v6
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6t2 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv6t2
1212
1313 @ CHECK-ASM: .arch armv6t2
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 27
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411A0000 00616561 62690001 10000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05365432 00060808 010902 |.6T2.......|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 6T2
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v6T2
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-2
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6z architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv6z
1212
1313 @ CHECK-ASM: .arch armv6z
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 28
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411B0000 00616561 62690001 11000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05365A00 06070801 09014401 |.6Z.......D.|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 6Z
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v6KZ
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: Virtualization_use
34 @ CHECK-ATTR: Description: TrustZone
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv6zk architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv6zk
1212
1313 @ CHECK-ASM: .arch armv6zk
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 29
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411C0000 00616561 62690001 12000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05365A4B 00060708 01090144 01 |.6ZK.......D.|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 6ZK
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v6KZ
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: Virtualization_use
34 @ CHECK-ATTR: Description: TrustZone
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-a architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv7-a
1212
1313 @ CHECK-ASM: .arch armv7-a
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 29
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411C0000 00616561 62690001 12000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05372D41 00060A07 41080109 02 |.7-A....A....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 7-A
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v7
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Application
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: ARM_ISA_use
30 @ CHECK-ATTR: Description: Permitted
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: THUMB_ISA_use
34 @ CHECK-ATTR: Description: Thumb-2
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-m architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv7-m
1212
1313 @ CHECK-ASM: .arch armv7-m
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 27
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411A0000 00616561 62690001 10000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05372D4D 00060A07 4D0902 |.7-M....M..|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 7-M
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v7
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Microcontroller
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-2
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-r architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv7-r
1212
1313 @ CHECK-ASM: .arch armv7-r
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 29
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411C0000 00616561 62690001 12000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05372D52 00060A07 52080109 02 |.7-R....R....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 7-R
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v7
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Real-time
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: ARM_ISA_use
30 @ CHECK-ATTR: Description: Permitted
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: THUMB_ISA_use
34 @ CHECK-ATTR: Description: Thumb-2
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv7
1212
1313 @ CHECK-ASM: .arch armv7
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 23
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41160000 00616561 62690001 0C000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05370006 0A0902 |.7.....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 7
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v7
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: THUMB_ISA_use
26 @ CHECK-ATTR: Description: Thumb-2
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: }
29
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-a architecture when using the armv7a alias.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv7a
1212
1313 @ CHECK-ASM: .arch armv7-a
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 29
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411C0000 00616561 62690001 12000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05372D41 00060A07 41080109 02 |.7-A....A....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 7-A
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v7
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Application
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: ARM_ISA_use
30 @ CHECK-ATTR: Description: Permitted
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: THUMB_ISA_use
34 @ CHECK-ATTR: Description: Thumb-2
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-m architecture when using the armv7m alias.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv7m
1212
1313 @ CHECK-ASM: .arch armv7-m
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 27
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411A0000 00616561 62690001 10000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05372D4D 00060A07 4D0902 |.7-M....M..|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 7-M
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v7
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Microcontroller
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-2
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: }
33
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv7-r architecture when using the armv7r alias.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv7r
1212
1313 @ CHECK-ASM: .arch armv7-r
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 29
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411C0000 00616561 62690001 12000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 05372D52 00060A07 52080109 02 |.7-R....R....|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 7-R
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v7
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Real-time
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: ARM_ISA_use
30 @ CHECK-ATTR: Description: Permitted
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: THUMB_ISA_use
34 @ CHECK-ATTR: Description: Thumb-2
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv8-a architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv8-a
1212
1313 @ CHECK-ASM: .arch armv8-a
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 33
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41200000 00616561 62690001 16000000 |A ...aeabi......|
28 @ CHECK-OBJ: 0010: 05382D41 00060E07 41080109 022A0144 |.8-A....A....*.D|
29 @ CHECK-OBJ: 0020: 03 |.|
30 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 8-A
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v8
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Application
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: ARM_ISA_use
30 @ CHECK-ATTR: Description: Permitted
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: THUMB_ISA_use
34 @ CHECK-ATTR: Description: Thumb-2
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: Attribute {
37 @ CHECK-ATTR: TagName: MPextension_use
38 @ CHECK-ATTR: Description: Permitted
39 @ CHECK-ATTR: }
40 @ CHECK-ATTR: Attribute {
41 @ CHECK-ATTR: TagName: Virtualization_use
42 @ CHECK-ATTR: Description: TrustZone + Virtualization Extensions
43 @ CHECK-ATTR: }
44 @ CHECK-ATTR: }
45
22 @ This test case will check the default .ARM.attributes value for the
33 @ armv8-a architecture when using the armv8a alias.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch armv8a
1212
1313 @ CHECK-ASM: .arch armv8-a
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 33
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41200000 00616561 62690001 16000000 |A ...aeabi......|
28 @ CHECK-OBJ: 0010: 05382D41 00060E07 41080109 022A0144 |.8-A....A....*.D|
29 @ CHECK-OBJ: 0020: 03 |.|
30 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: 8-A
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v8
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: CPU_arch_profile
26 @ CHECK-ATTR: Description: Application
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: ARM_ISA_use
30 @ CHECK-ATTR: Description: Permitted
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: THUMB_ISA_use
34 @ CHECK-ATTR: Description: Thumb-2
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: Attribute {
37 @ CHECK-ATTR: TagName: MPextension_use
38 @ CHECK-ATTR: Description: Permitted
39 @ CHECK-ATTR: }
40 @ CHECK-ATTR: Attribute {
41 @ CHECK-ATTR: TagName: Virtualization_use
42 @ CHECK-ATTR: Description: TrustZone + Virtualization Extensions
43 @ CHECK-ATTR: }
44 @ CHECK-ATTR: }
45
22 @ This test case will check the default .ARM.attributes value for the
33 @ iwmmxt architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch iwmmxt
1212
1313 @ CHECK-ASM: .arch iwmmxt
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 32
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 411F0000 00616561 62690001 15000000 |A....aeabi......|
28 @ CHECK-OBJ: 0010: 0549574D 4D585400 06040801 09010B01 |.IWMMXT.........|
29 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: IWMMXT
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v5TE
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: WMMX_arch
34 @ CHECK-ATTR: Description: WMMXv1
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
22 @ This test case will check the default .ARM.attributes value for the
33 @ iwmmxt2 architecture.
44
5 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=asm \
6 @ RUN: | FileCheck %s --check-prefix=CHECK-ASM
7 @ RUN: llvm-mc < %s -triple=arm-linux-gnueabi -filetype=obj \
8 @ RUN: | llvm-readobj -s -sd | FileCheck %s --check-prefix=CHECK-OBJ
5 @ RUN: llvm-mc -triple arm-eabi -filetype asm %s \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ASM
7 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s \
8 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
99
1010 .syntax unified
1111 .arch iwmmxt2
1212
1313 @ CHECK-ASM: .arch iwmmxt2
1414
15 @ CHECK-OBJ: Name: .ARM.attributes
16 @ CHECK-OBJ: Type: SHT_ARM_ATTRIBUTES (0x70000003)
17 @ CHECK-OBJ: Flags [ (0x0)
18 @ CHECK-OBJ: ]
19 @ CHECK-OBJ: Address: 0x0
20 @ CHECK-OBJ: Offset: 0x34
21 @ CHECK-OBJ: Size: 33
22 @ CHECK-OBJ: Link: 0
23 @ CHECK-OBJ: Info: 0
24 @ CHECK-OBJ: AddressAlignment: 1
25 @ CHECK-OBJ: EntrySize: 0
26 @ CHECK-OBJ: SectionData (
27 @ CHECK-OBJ: 0000: 41200000 00616561 62690001 16000000 |A ...aeabi......|
28 @ CHECK-OBJ: 0010: 0549574D 4D585432 00060408 0109010B |.IWMMXT2........|
29 @ CHECK-OBJ: 0020: 02 |.|
30 @ CHECK-OBJ: )
15 @ CHECK-ATTR: FileAttributes {
16 @ CHECK-ATTR: Attribute {
17 @ CHECK-ATTR: TagName: CPU_name
18 @ CHECK-ATTR: Value: IWMMXT2
19 @ CHECK-ATTR: }
20 @ CHECK-ATTR: Attribute {
21 @ CHECK-ATTR: TagName: CPU_arch
22 @ CHECK-ATTR: Description: ARM v5TE
23 @ CHECK-ATTR: }
24 @ CHECK-ATTR: Attribute {
25 @ CHECK-ATTR: TagName: ARM_ISA_use
26 @ CHECK-ATTR: Description: Permitted
27 @ CHECK-ATTR: }
28 @ CHECK-ATTR: Attribute {
29 @ CHECK-ATTR: TagName: THUMB_ISA_use
30 @ CHECK-ATTR: Description: Thumb-1
31 @ CHECK-ATTR: }
32 @ CHECK-ATTR: Attribute {
33 @ CHECK-ATTR: TagName: WMMX_arch
34 @ CHECK-ATTR: Description: WMMXv2
35 @ CHECK-ATTR: }
36 @ CHECK-ATTR: }
37
None @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj -s -sd \
1 @ RUN: | FileCheck %s
0 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s \
1 @ RUN: | llvm-readobj -arm-attributes | FileCheck %s -check-prefix CHECK-ATTR
22
33 .syntax unified
44 .thumb
66 .eabi_attribute Tag_compatibility, 1
77 .eabi_attribute Tag_compatibility, 1, "aeabi"
88
9 @ CHECK: Section {
10 @ CHECK: Name: .ARM.attributes
11 @ CHECK: Type: SHT_ARM_ATTRIBUTES
12 @ CHECK: SectionData (
13 @ CHECK: 0000: 41170000 00616561 62690001 0D000000
14 @ CHECK: 0010: 20014145 41424900
15 @ CHECK: )
16 @ CHECK: }
9 @ CHECK-ATTR: FileAttributes {
10 @ CHECK-ATTR: Attribute {
11 @ CHECK-ATTR: Value: 1, AEABI
12 @ CHECK-ATTR: TagName: compatibility
13 @ CHECK-ATTR: Description: AEABI Conformant
14 @ CHECK-ATTR: }
15 @ CHECK-ATTR: }
1716
22 @ The later .fpu directive should overwrite the earlier one.
33 @ See also: directive-fpu-multiple2.s.
44
5 @ RUN: llvm-mc < %s -triple arm-unknown-linux-gnueabi -filetype=obj \
6 @ RUN: | llvm-readobj -s -sd | FileCheck %s
5 @ RUN: llvm-mc -triple arm-eabi -filetype obj %s | llvm-readobj -arm-attributes \
6 @ RUN: | FileCheck %s -check-prefix CHECK-ATTR
77
88 .fpu neon
99 .fpu vfpv4
1010
11 @ CHECK: Name: .ARM.attributes
12 @ CHECK-NEXT: Type: SHT_ARM_ATTRIBUTES (0x70000003)
13 @ CHECK-NEXT: Flags [ (0x0)
14 @ CHECK-NEXT: ]
15 @ CHECK-NEXT: Address: 0x0
16 @ CHECK-NEXT: Offset: 0x34
17 @ CHECK-NEXT: Size: 18
18 @ CHECK-NEXT: Link: 0
19 @ CHECK-NEXT: Info: 0
20 @ CHECK-NEXT: AddressAlignment: 1
21 @ CHECK-NEXT: EntrySize: 0
22 @ CHECK-NEXT: SectionData (
23 @ CHECK-NEXT: 0000: 41110000 00616561 62690001 07000000
24 @ CHECK-NEXT: 0010: 0A05
25 @ CHECK-NEXT: )
11 @ CHECK-ATTR: FileAttributes {
12 @ CHECK-ATTR: Attribute {
13 @ CHECK-ATTR: TagName: FP_arch
14 @ CHECK-ATTR: Description: VFPv4
15 @ CHECK-ATTR: }
16 @ CHECK-ATTR: }
17