File: assembly-default-build-attributes.s

package info (click to toggle)
llvm-toolchain-17 1%3A17.0.6-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,799,624 kB
  • sloc: cpp: 6,428,607; ansic: 1,383,196; asm: 793,408; python: 223,504; objc: 75,364; f90: 60,502; lisp: 33,869; pascal: 15,282; sh: 9,684; perl: 7,453; ml: 4,937; awk: 3,523; makefile: 2,889; javascript: 2,149; xml: 888; fortran: 619; cs: 573
file content (59 lines) | stat: -rw-r--r-- 3,019 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// RUN: llvm-mc -triple armv7a < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v7A
// RUN: llvm-mc -triple armv6m < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v6M
// RUN: llvm-mc -triple armv7m < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v7M
// RUN: llvm-mc -triple armv7a -mcpu=cortex-a15 < %s -arm-add-build-attributes | FileCheck %s --check-prefix=Cortex-A15
// RUN: llvm-mc -triple armv8m.base < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v8M_Baseline
// RUN: llvm-mc -triple armv8m.main < %s -arm-add-build-attributes | FileCheck %s --check-prefix=v8M_Mainline

// This isn't intended to be a through check of the build attributes emitted
// for each target (that's tested elsewhere), but just to check that the
// hardware attributes are emitted by the assembler based on the selected
// target when requested.

// v7A-NOT: .cpu
// v7A: .eabi_attribute 6, 10   @ Tag_CPU_arch
// v7A: .eabi_attribute 7, 65   @ Tag_CPU_arch_profile
// v7A: .eabi_attribute 8, 1    @ Tag_ARM_ISA_use
// v7A: .eabi_attribute 9, 2    @ Tag_THUMB_ISA_use
// v7A: .fpu    neon
// v7A: .eabi_attribute 34, 1   @ Tag_CPU_unaligned_access

// v6M-NOT: .cpu
// v6M: .eabi_attribute 6, 12   @ Tag_CPU_arch
// v6M: .eabi_attribute 7, 77   @ Tag_CPU_arch_profile
// v6M: .eabi_attribute 8, 0    @ Tag_ARM_ISA_use
// v6M: .eabi_attribute 9, 1    @ Tag_THUMB_ISA_use
// v6M: .eabi_attribute 34, 0   @ Tag_CPU_unaligned_access

// v7M-NOT: .cpu
// v7M: .eabi_attribute 6, 10   @ Tag_CPU_arch
// v7M: .eabi_attribute 7, 77   @ Tag_CPU_arch_profile
// v7M: .eabi_attribute 8, 0    @ Tag_ARM_ISA_use
// v7M: .eabi_attribute 9, 2    @ Tag_THUMB_ISA_use
// v7M: .eabi_attribute 34, 1   @ Tag_CPU_unaligned_access

// v8M_Baseline-NOT: .cpu
// v8M_Baseline: .eabi_attribute 6, 16   @ Tag_CPU_arch
// v8M_Baseline: .eabi_attribute 7, 77   @ Tag_CPU_arch_profile
// v8M_Baseline: .eabi_attribute 8, 0    @ Tag_ARM_ISA_use
// v8M_Baseline: .eabi_attribute 9, 3    @ Tag_THUMB_ISA_use
// v8M_Baseline: .eabi_attribute 34, 0   @ Tag_CPU_unaligned_access

// v8M_Mainline-NOT: .cpu
// v8M_Mainline: .eabi_attribute 6, 17   @ Tag_CPU_arch
// v8M_Mainline: .eabi_attribute 7, 77   @ Tag_CPU_arch_profile
// v8M_Mainline: .eabi_attribute 8, 0    @ Tag_ARM_ISA_use
// v8M_Mainline: .eabi_attribute 9, 3    @ Tag_THUMB_ISA_use
// v8M_Mainline: .eabi_attribute 34, 1   @ Tag_CPU_unaligned_access

// Cortex-A15: .cpu    cortex-a15
// Cortex-A15: .eabi_attribute 6, 10   @ Tag_CPU_arch
// Cortex-A15: .eabi_attribute 7, 65   @ Tag_CPU_arch_profile
// Cortex-A15: .eabi_attribute 8, 1    @ Tag_ARM_ISA_use
// Cortex-A15: .eabi_attribute 9, 2    @ Tag_THUMB_ISA_use
// Cortex-A15: .fpu    neon-vfpv4
// Cortex-A15: .eabi_attribute 36, 1   @ Tag_FP_HP_extension
// Cortex-A15: .eabi_attribute 42, 1   @ Tag_MPextension_use
// Cortex-A15: .eabi_attribute 44, 2   @ Tag_DIV_use
// Cortex-A15: .eabi_attribute 34, 1   @ Tag_CPU_unaligned_access
// Cortex-A15: .eabi_attribute 68, 3   @ Tag_Virtualization_use