[InstCombine] Signed saturation patterns
[llvm-core.git] / test / tools / dsymutil / X86 / common-sym-multi.test
blob1f33b37283b4259d3fedc8e4343cb33f1cfb78c4
1 RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/common/common.x86_64 -f -o - | llvm-dwarfdump -debug-info - | FileCheck %s
2 RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/common/common.x86_64 -dump-debug-map | FileCheck %s --check-prefix DEBUGMAP
4 The test was compiled from two source files:
5 $ cd /private/tmp/common
6 $ cat common1.c
7 int i[1000];
8 int main() {
9   return i[1];
11 $ cat common2.c
12 extern int i[1000];
13 int bar() {
14   return i[0];
16 $ clang -fcommon -g -c common1.c -o common1.o
17 $ clang -fcommon -g -c common2.c -o common2.o
18 $ clang -fcommon -g common1.o common2.o -o common.x86_64
20 CHECK: DW_TAG_compile_unit
21 CHECK:   DW_TAG_variable
22 CHECK-NOT: {{NULL|DW_TAG}}
23 CHECK:     DW_AT_name{{.*}}"i"
24 CHECK-NOT: {{NULL|DW_TAG}}
25 CHECK:     DW_AT_location{{.*}}DW_OP_addr 0x100001000)
27 CHECK: DW_TAG_compile_unit
28 CHECK:   DW_TAG_variable
29 CHECK-NOT: {{NULL|DW_TAG}}
30 CHECK:     DW_AT_name{{.*}}"i"
31 CHECK-NOT: {{NULL|DW_TAG}}
32 CHECK:     DW_AT_location{{.*}}DW_OP_addr 0x100001000)
34 DEBUGMAP: filename:{{.*}}common1.o
35 DEBUGMAP: symbols:
36 DEBUGMAP: sym: _i, binAddr: 0x0000000100001000, size: 0x00000000
37 DEBUGMAP: filename:{{.*}}common2.o
38 DEBUGMAP: symbols:
39 DEBUGMAP: sym: _i, binAddr: 0x0000000100001000, size: 0x00000000