File: assembly-default-build-attributes.s

package info (click to toggle)
llvm-toolchain-14 1%3A14.0.6-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,496,180 kB
  • sloc: cpp: 5,593,972; ansic: 986,872; asm: 585,869; python: 184,223; objc: 72,530; lisp: 31,119; f90: 27,793; javascript: 9,780; pascal: 9,762; sh: 9,482; perl: 7,468; ml: 5,432; awk: 3,523; makefile: 2,538; xml: 953; cs: 573; fortran: 567
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