brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.6 KiB · ae97b19 Raw
92 lines · plain
1# REQUIRES: x862 3# RUN: rm -rf %t; split-file %s %t4 5# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/basic.s -o %t/basic.o6# RUN: %lld -lSystem %t/basic.o -o %t/basic7# RUN: llvm-objdump --syms %t/basic > %t/objdump8# RUN: llvm-objdump --macho --function-starts %t/basic >> %t/objdump9# RUN: FileCheck %s --check-prefix=BASIC < %t/objdump10 11# BASIC-LABEL: SYMBOL TABLE:12# BASIC-NEXT:  [[#%x,MAIN:]] g F __TEXT,__text _main13# BASIC-NEXT:  [[#%x,F1:]] g F __TEXT,__text _f114# BASIC-NEXT:  [[#%x,F2:]] g F __TEXT,__text _f215# BASIC-LABEL: basic:16# BASIC:       [[#F1]]17# BASIC:       [[#F2]]18# BASIC:       [[#MAIN]]19 20# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/alias.s -o %t/alias.o21# RUN: %lld -lSystem %t/alias.o -o %t/alias22# RUN: llvm-objdump --syms  %t/alias > %t/objdump23# RUN: llvm-objdump --macho --function-starts %t/alias >> %t/objdump24# RUN: FileCheck %s --check-prefix=ALIAS < %t/objdump25 26# ALIAS-LABEL: SYMBOL TABLE:27# ALIAS-NEXT:  [[#%x,F2:]] l F __TEXT,__text _f228# ALIAS-NEXT:  [[#%x,MAIN:]] g F __TEXT,__text _main29# ALIAS-NEXT:  [[#%x,F1:]] g F __TEXT,__text _f130# ALIAS-LABEL: alias:31# ALIAS:       [[#F1]]32# ALIAS:       [[#MAIN]]33 34# RUN: %lld %t/basic.o -no_function_starts -o %t/basic-no-function-starts35# RUN: llvm-objdump --macho --function-starts %t/basic-no-function-starts | FileCheck %s --check-prefix=NO-FUNCTION-STARTS36# NO-FUNCTION-STARTS: basic-no-function-starts:37# NO-FUNCTION-STARTS-EMPTY:38 39# RUN: %lld -lSystem %t/basic.o -no_function_starts -function_starts -o %t/basic-explicit40# RUN: llvm-objdump --syms %t/basic > %t/objdump41# RUN: llvm-objdump --macho --function-starts %t/basic >> %t/objdump42# RUN: FileCheck %s --check-prefix=BASIC < %t/objdump43 44# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/local.s -o %t/local.o45# RUN: %lld -lSystem %t/local.o -o %t/local46# RUN: llvm-objdump --syms %t/local > %t/objdump47# RUN: llvm-objdump --macho --function-starts %t/local >> %t/objdump48# RUN: FileCheck %s --check-prefix=LOCAL < %t/objdump49 50# LOCAL-LABEL: SYMBOL TABLE:51# LOCAL-NEXT:  [[#%x,F1:]] l F __TEXT,__text +[Foo bar]52# LOCAL-NEXT:  [[#%x,F2:]] l F __TEXT,__text _foo53# LOCAL:       [[#%x,F3:]] g F __TEXT,__text _main54# LOCAL-LABEL: local:55# LOCAL:       [[#F1]]56# LOCAL:       [[#F2]]57# LOCAL:       [[#F3]]58 59#--- basic.s60.section  __TEXT,__text,regular,pure_instructions61.globl  _f162.globl  _f263.globl  _main64_f1:65  retq66_f2:67  retq68_main:69  retq70 71#--- alias.s72.section  __TEXT,__text,regular,pure_instructions73.globl  _f174.equiv  _f2, _f175.globl  _main76_f1:77  retq78_main:79  retq80 81#--- local.s82.section __TEXT,__text83"+[Foo bar]":84  retq85 86_foo:87  retq88 89.globl _main90_main:91  retq92