32 lines · plain
1# REQUIRES: csky-registered-target2## Ignore CSKY mapping symbols (with a prefix of $d or $t).3 4# RUN: llvm-mc -filetype=obj -triple=csky %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_SYM --match-full-lines9 10# MAPPING_SYM: 00000000 t $d11# MAPPING_SYM-NEXT: 00000008 t $d12# MAPPING_SYM-NEXT: 00000004 t $t13# MAPPING_SYM-NEXT: 00000000 T foo14 15# RUN: llvm-symbolizer --obj=%t 0 4 0xc | FileCheck %s -check-prefix SYMBOL16 17# SYMBOL: foo18# SYMBOL-NEXT: ??:0:019# SYMBOL-EMPTY:20# SYMBOL: foo21# SYMBOL-NEXT: ??:0:022# SYMBOL-EMPTY:23# SYMBOL: foo24# SYMBOL-NEXT: ??:0:025 26.globl foo27foo:28 .long 3229 nop30 nop31 .long 4232