xref: /llvm-project/clang/test/Misc/cc1as-split-dwarf.s (revision 922759a63d7d8edbc47578b4718a38765093d24e)
191d02844SPeter Collingbourne// REQUIRES: x86-registered-target
2*922759a6SAaron Puchert// RUN: %clang -cc1as -triple x86_64-pc-linux-gnu %s -filetype obj -o %t1 -split-dwarf-output %t2
391d02844SPeter Collingbourne// RUN: llvm-objdump -s %t1 | FileCheck --check-prefix=O %s
491d02844SPeter Collingbourne// RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=DWO %s
591d02844SPeter Collingbourne
691d02844SPeter Collingbourne// O-NOT: Contents of section
791d02844SPeter Collingbourne// O: Contents of section .strtab:
891d02844SPeter Collingbourne// O-NOT: Contents of section
991d02844SPeter Collingbourne// O: Contents of section .text:
1091d02844SPeter Collingbourne// O-NEXT: 0000 c3
1191d02844SPeter Collingbourne// O-NEXT: Contents of section .symtab:
1291d02844SPeter Collingbourne// O-NOT: Contents of section
1391d02844SPeter Collingbourne.globl main
1491d02844SPeter Collingbournemain:
1591d02844SPeter Collingbourne.Ltmp1:
1691d02844SPeter Collingbourneret
1791d02844SPeter Collingbourne.Ltmp2:
1891d02844SPeter Collingbourne
1991d02844SPeter Collingbourne// DWO-NOT: Contents of section
2091d02844SPeter Collingbourne// DWO: Contents of section .strtab:
2191d02844SPeter Collingbourne// DWO-NOT: Contents of section
2291d02844SPeter Collingbourne// DWO: Contents of section .foo.dwo:
2391d02844SPeter Collingbourne// DWO-NEXT: 0000 01000000
2491d02844SPeter Collingbourne// DWO-NOT: Contents of section
2591d02844SPeter Collingbourne.section .foo.dwo
2691d02844SPeter Collingbourne.long .Ltmp2-.Ltmp1
27