brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 27310c0 Raw
37 lines · plain
1# REQUIRES: arm-registered-target2## Ignore ARM mapping symbols (with a prefix of $a, $d or $t).3 4# RUN: llvm-mc -filetype=obj -triple=armv7-none-linux %s -o %t5 6## Verify that mapping symbols are actually present in the object at expected7## addresses.8# RUN: llvm-nm --special-syms %t | FileCheck %s --check-prefix=MAPPING_A --match-full-lines9 10# MAPPING_A:      00000004 t $a11# MAPPING_A-NEXT: 00000000 t $d12# MAPPING_A-NEXT: 00000008 t $d13# MAPPING_A-NEXT: 00000000 T foo14 15# RUN: llvm-mc -filetype=obj -triple=thumbv7-none-linux %s -o %tthumb16# RUN: llvm-nm --special-syms %tthumb | FileCheck %s --check-prefix=MAPPING_T --match-full-lines17 18# MAPPING_T:      00000000 t $d19# MAPPING_T-NEXT: 00000006 t $d20# MAPPING_T-NEXT: 00000004 t $t21# MAPPING_T-NEXT: 00000000 T foo22 23# RUN: llvm-symbolizer --obj=%t 4 8 | FileCheck %s -check-prefix SYMBOL24# RUN: llvm-symbolizer --obj=%tthumb 4 8 | FileCheck %s -check-prefix SYMBOL25 26# SYMBOL:       foo27# SYMBOL-NEXT:  ??:0:028# SYMBOL-EMPTY:29# SYMBOL-NEXT:  foo30# SYMBOL-NEXT:  ??:0:031 32.globl foo33foo:34  .word 3235  nop36  .word 3237