[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / assembly-default-build-attributes.s
blobbe63066ff90f0f5da40d655b79f3c5b8966273eb
1 // RUN: llvm-mc -triple armv7a < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v7A
2 // RUN: llvm-mc -triple armv6m < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v6M
3 // RUN: llvm-mc -triple armv7m < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v7M
4 // RUN: llvm-mc -triple armv7a -mcpu=cortex-a15 < %s -arm-add-build-attributes | FileCheck %s --check-prefix=Cortex-A15
6 // This isn't intended to be a through check of the build attributes emitted
7 // for each target (that's tested elsewhere), but just to check that the
8 // hardware attributes are emitted by the assembler based on the selected
9 // target when requested.
11 // v7A-NOT: .cpu
12 // v7A: .eabi_attribute 6, 10 @ Tag_CPU_arch
13 // v7A: .eabi_attribute 7, 65 @ Tag_CPU_arch_profile
14 // v7A: .eabi_attribute 8, 1 @ Tag_ARM_ISA_use
15 // v7A: .eabi_attribute 9, 2 @ Tag_THUMB_ISA_use
16 // v7A: .fpu neon
17 // v7A: .eabi_attribute 34, 1 @ Tag_CPU_unaligned_access
19 // v6M-NOT: .cpu
20 // v6M: .eabi_attribute 6, 12 @ Tag_CPU_arch
21 // v6M: .eabi_attribute 7, 77 @ Tag_CPU_arch_profile
22 // v6M: .eabi_attribute 8, 0 @ Tag_ARM_ISA_use
23 // v6M: .eabi_attribute 9, 1 @ Tag_THUMB_ISA_use
24 // v6M: .eabi_attribute 34, 0 @ Tag_CPU_unaligned_access
26 // v7M-NOT: .cpu
27 // v7M: .eabi_attribute 6, 10 @ Tag_CPU_arch
28 // v7M: .eabi_attribute 7, 77 @ Tag_CPU_arch_profile
29 // v7M: .eabi_attribute 8, 0 @ Tag_ARM_ISA_use
30 // v7M: .eabi_attribute 9, 2 @ Tag_THUMB_ISA_use
31 // v7M: .eabi_attribute 34, 1 @ Tag_CPU_unaligned_access
33 // Cortex-A15: .cpu cortex-a15
34 // Cortex-A15: .eabi_attribute 6, 10 @ Tag_CPU_arch
35 // Cortex-A15: .eabi_attribute 7, 65 @ Tag_CPU_arch_profile
36 // Cortex-A15: .eabi_attribute 8, 1 @ Tag_ARM_ISA_use
37 // Cortex-A15: .eabi_attribute 9, 2 @ Tag_THUMB_ISA_use
38 // Cortex-A15: .fpu neon-vfpv4
39 // Cortex-A15: .eabi_attribute 36, 1 @ Tag_FP_HP_extension
40 // Cortex-A15: .eabi_attribute 42, 1 @ Tag_MPextension_use
41 // Cortex-A15: .eabi_attribute 44, 2 @ Tag_DIV_use
42 // Cortex-A15: .eabi_attribute 34, 1 @ Tag_CPU_unaligned_access
43 // Cortex-A15: .eabi_attribute 68, 3 @ Tag_Virtualization_use