[test] Pre-commit llvm.experimental.memset.pattern tests prior to MemoryLocation...
[llvm-project.git] / llvm / test / DebugInfo / Symbolize / ELF / arm-mapping-symbol.s
blob27310c09fb07ccfd64e5c849f77fa1353d56bf3b
1 # REQUIRES: arm-registered-target
2 ## Ignore ARM mapping symbols (with a prefix of $a, $d or $t).
4 # RUN: llvm-mc -filetype=obj -triple=armv7-none-linux %s -o %t
6 ## Verify that mapping symbols are actually present in the object at expected
7 ## addresses.
8 # RUN: llvm-nm --special-syms %t | FileCheck %s --check-prefix=MAPPING_A --match-full-lines
10 # MAPPING_A: 00000004 t $a
11 # MAPPING_A-NEXT: 00000000 t $d
12 # MAPPING_A-NEXT: 00000008 t $d
13 # MAPPING_A-NEXT: 00000000 T foo
15 # RUN: llvm-mc -filetype=obj -triple=thumbv7-none-linux %s -o %tthumb
16 # RUN: llvm-nm --special-syms %tthumb | FileCheck %s --check-prefix=MAPPING_T --match-full-lines
18 # MAPPING_T: 00000000 t $d
19 # MAPPING_T-NEXT: 00000006 t $d
20 # MAPPING_T-NEXT: 00000004 t $t
21 # MAPPING_T-NEXT: 00000000 T foo
23 # RUN: llvm-symbolizer --obj=%t 4 8 | FileCheck %s -check-prefix SYMBOL
24 # RUN: llvm-symbolizer --obj=%tthumb 4 8 | FileCheck %s -check-prefix SYMBOL
26 # SYMBOL: foo
27 # SYMBOL-NEXT: ??:0:0
28 # SYMBOL-EMPTY:
29 # SYMBOL-NEXT: foo
30 # SYMBOL-NEXT: ??:0:0
32 .globl foo
33 foo:
34 .word 32
35 nop
36 .word 32