Peter Collingbourne | 91d0284 | 2018-05-22 18:52:37 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-registered-target |
Aaron Puchert | 922759a | 2019-06-15 14:07:43 +0000 | [diff] [blame] | 2 | // RUN: %clang -cc1as -triple x86_64-pc-linux-gnu %s -filetype obj -o %t1 -split-dwarf-output %t2 |
Peter Collingbourne | 91d0284 | 2018-05-22 18:52:37 +0000 | [diff] [blame] | 3 | // RUN: llvm-objdump -s %t1 | FileCheck --check-prefix=O %s |
| 4 | // RUN: llvm-objdump -s %t2 | FileCheck --check-prefix=DWO %s |
| 5 | |
| 6 | // O-NOT: Contents of section |
| 7 | // O: Contents of section .strtab: |
| 8 | // O-NOT: Contents of section |
| 9 | // O: Contents of section .text: |
| 10 | // O-NEXT: 0000 c3 |
| 11 | // O-NEXT: Contents of section .symtab: |
| 12 | // O-NOT: Contents of section |
| 13 | .globl main |
| 14 | main: |
| 15 | .Ltmp1: |
| 16 | ret |
| 17 | .Ltmp2: |
| 18 | |
| 19 | // DWO-NOT: Contents of section |
| 20 | // DWO: Contents of section .strtab: |
| 21 | // DWO-NOT: Contents of section |
| 22 | // DWO: Contents of section .foo.dwo: |
| 23 | // DWO-NEXT: 0000 01000000 |
| 24 | // DWO-NOT: Contents of section |
| 25 | .section .foo.dwo |
| 26 | .long .Ltmp2-.Ltmp1 |