[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / ARM / mappingsymbols.s
blob3727e3ef7f2fadf5562688853c646b1c08337cd3
1 # Check section containing code and data with permission executable for the section.
2 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/1.s
3 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s
5 # Check section containing code and data with no permissions for the section.
6 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/2.s
7 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s
9 # Check section containing code and data with read/write permissions for the section.
10 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/3.s
11 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s
13 # Check section containing data with no permissions for the section.
14 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/4.s
15 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
17 # Check section containing only data with read/write permissions for the section.
18 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/5.s
19 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
21 # Check section containing the ident string with no permissions for the section.
22 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/ident.s
23 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
25 # Check section containing the attributes with no permissions for the section.
26 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/attr.s
27 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MAPPINGSYMBOLS
29 # Check section containing code and data with no permissions for the section.
30 # data comes before code.
31 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/6.s
32 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s -check-prefix=MIX
34 # Check section containing code and data with no permissions for the section.
35 # data comes before code.
36 @ RUN: llvm-mc -triple armv7-none-linux -filetype=obj -o %t.o %p/Inputs/7.s
37 @ RUN: llvm-readelf -symbols %t.o | FileCheck %s
39 #CHECK: $a
40 #CHECK: $d
42 #MIX: $a
43 #MIX: $a
44 #MIX: $d
45 #MIX: $d
47 #MAPPINGSYMBOLS-NOT: $a
48 #MAPPINGSYMBOLS-NOT: $d