Debian Codegraph @

llvm/test/tools/dsymutil/ARM/discriminator.test

raw
1 ; The input at Inputs/discriminator.arm64.dylib[.o] produced by compiling
2 ;
3 ; int foo(int i, int a, int b) {
4 ; return i ? a : a * b;
5 ; }
6 ;
7 ; with -g -fdebug-info-for-profiling -O2.
8
9 RUN: dsymutil --flat --linker=classic -o - --oso-prepend-path %p/../Inputs \
10 RUN: --verify-dwarf=none %p/../Inputs/discriminator.arm64.dylib \
11 RUN: | llvm-dwarfdump -debug-line - | FileCheck %s
12
13 RUN: dsymutil --flat --linker=parallel -o - --oso-prepend-path %p/../Inputs \
14 RUN: --verify-dwarf=none %p/../Inputs/discriminator.arm64.dylib \
15 RUN: | llvm-dwarfdump -debug-line - | FileCheck %s
16
17 CHECK: Address Line Column File ISA Discriminator OpIndex Flags
18 CHECK-NEXT: ------------------ ------ ------ ------ --- ------------- ------- -------------
19 CHECK-NEXT: 0x0000000000003f98 2 10 0 0 0 0 is_stmt prologue_end
20 CHECK-NEXT: 0x0000000000003fa4 2 3 0 0 6 0
21 CHECK-NEXT: 0x0000000000003fa8 2 3 0 0 6 0 end_sequence