Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-profgen/split-dwarf.test
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

51 lines
2.2 KiB
Plaintext

; RUN: rm -rf %t
; RUN: mkdir -p %t
; RUN: cd %t
; RUN: echo -e "0\n0" > %t.prof
; Test -gsplit-dwarf=single
; RUN: cp %S/Inputs/split-dwarf-single.exe %t/split-dwarf-single.exe
; RUN: yaml2obj %S/Inputs/split-dwarf-single.o.yaml -o %t/split-dwarf-single.o
; RUN: llvm-profgen --format=text --unsymbolized-profile=%t.prof --binary=%t/split-dwarf-single.exe --output=%t1 --fill-zero-for-all-funcs
; RUN: FileCheck %s --input-file %t1 --check-prefix=CHECK-SPLIT-DWARF
; Test -gsplit-dwarf=split
; RUN: cp %S/Inputs/split-dwarf-split.exe %t/split-dwarf-split.exe
; RUN: yaml2obj %S/Inputs/split-dwarf-split.dwo.yaml -o %t/split-dwarf-split.dwo
; RUN: llvm-profgen --format=text --unsymbolized-profile=%t.prof --binary=%t/split-dwarf-split.exe --output=%t2 --fill-zero-for-all-funcs
; RUN: FileCheck %s --input-file %t2 --check-prefix=CHECK-SPLIT-DWARF
; Test --dwp
; RUN: llvm-dwp %t/split-dwarf-split.dwo -o %t/split-dwarf-split.dwp
; RUN: llvm-profgen --format=text --unsymbolized-profile=%t.prof --dwp=%t/split-dwarf-split.dwp --binary=%t/split-dwarf-split.exe --output=%t3 --fill-zero-for-all-funcs
; RUN: FileCheck %s --input-file %t3 --check-prefix=CHECK-SPLIT-DWARF
; Make sure that all function ranges are well retrieved and have been populated with zero.
; CHECK-SPLIT-DWARF: foo:0:0
; CHECK-SPLIT-DWARF-NEXT: 0: 0
; CHECK-SPLIT-DWARF-NEXT: 1: 0
; CHECK-SPLIT-DWARF-NEXT: main:0:0
; CHECK-SPLIT-DWARF-NEXT: 0: 0
; CHECK-SPLIT-DWARF-NEXT: 1: 0
; CHECK-SPLIT-DWARF-NEXT: 2: 0
; Build instructions:
; split-dwarf-single.o: clang -gsplit-dwarf=single -fdebug-compilation-dir=. test.c -fdebug-info-for-profiling -O0 -g -o split-dwarf-single.o -c
; split-dwarf-single.exe: clang -fdebug-compilation-dir=. split-dwarf-single.o -o split-dwarf-single.exe -fdebug-info-for-profiling -O0 -g
; split-dwarf-split.dwo: clang -gsplit-dwarf=split -fdebug-compilation-dir=. test.c -fdebug-info-for-profiling -O0 -g -o split-dwarf-split.o -c
; split-dwarf-split.exe: clang -fdebug-compilation-dir=. split-dwarf-split.o -o split-dwarf-split.exe -fdebug-info-for-profiling -O0 -g
; Source code:
int foo() {
return 1;
}
int main() {
foo();
return 0;
}