[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / debug-main-file.s
blobd5b0d44c596c9b6dcbe5566c6b29cd776d177338
1 // RUN: mkdir -p %t/Inputs
2 // RUN: cp %s %t/base.s
3 // RUN: cp %s %t/Inputs/subdir.s
4 // RUN: cd %t
6 // RUN: llvm-mc -triple=x86_64-linux-unknown -filetype=obj -dwarf-version=4 \
7 // RUN: -g base.s -o %t1.o
8 // RUN: llvm-dwarfdump -debug-info %t1.o | \
9 // RUN: FileCheck %s --check-prefixes=CHECK,BASE
10 // RUN: llvm-mc -triple=x86_64-linux-unknown -filetype=obj -dwarf-version=4 \
11 // RUN: -g base.s -o %t2.o -main-file-name rename.s
12 // RUN: llvm-dwarfdump -debug-info %t2.o | \
13 // RUN: FileCheck %s --check-prefixes=CHECK,RENAME
14 // RUN: llvm-mc -triple=x86_64-linux-unknown -filetype=obj -dwarf-version=4 \
15 // RUN: -g Inputs/subdir.s -o %t3.o
16 // RUN: llvm-dwarfdump -debug-info %t3.o | \
17 // RUN: FileCheck %s --check-prefixes=CHECK,SUBDIR
18 // RUN: llvm-mc -triple=x86_64-linux-unknown -filetype=obj -dwarf-version=4 \
19 // RUN: -g Inputs/subdir.s -main-file-name sub-rename.s -o %t4.o
20 // RUN: llvm-dwarfdump -debug-info %t4.o | \
21 // RUN: FileCheck %s --check-prefixes=CHECK,SUB-RENAME
23 // CHECK: DW_TAG_compile_unit
24 // CHECK-NOT: DW_TAG
25 // CHECK: DW_AT_name
26 // BASE-SAME: ("base.s")
27 // RENAME-SAME: ("rename.s")
28 // SUBDIR-SAME: ("Inputs{{(/|\\)+}}subdir.s")
29 // SUB-RENAME-SAME: ("Inputs{{(/|\\)+}}sub-rename.s")
31 // CHECK: DW_TAG_label
32 // CHECK-NOT: DW_TAG
33 // CHECK: DW_AT_decl_file
34 // BASE-SAME: ("{{.*(/|\\)}}base.s")
35 // RENAME-SAME: ("{{.*(/|\\)}}rename.s")
36 // SUBDIR-SAME: ("{{.*Inputs(/|\\)+}}subdir.s")
37 // SUB-RENAME-SAME: ("{{.*Inputs(/|\\)+}}sub-rename.s")
39 .text
40 start:
41 nop