Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-dwarfdump/X86/statistics-v3.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

93 lines
2.5 KiB
Plaintext

# Test of the llmv-dwarfdump --statistics newly added stats (version >= 3).
#
RUN: llvm-mc -triple x86_64-unknown-linux-gnu %S/Inputs/statistics-fib.s -filetype=obj -o %t-statistics-fib.o
RUN: llvm-dwarfdump --statistics %t-statistics-fib.o | FileCheck %s
# Source program - A version of Fibonacci
# Compilation options: -g -O3 -c
#
# int
# real_fib (int x, int answers[11])
# {
# int result;
#
# if ((answers)[x] != -1)
# return (answers)[x];
#
# result = real_fib(x-1, answers) + real_fib(x-2, answers);
# (answers)[x] = result;
#
# return result;
# }
#
# int
# fib (int x)
# {
# int answers[11];
# int i;
#
# if (x > 10)
# return -1;
#
# for (i = 0; i < 11; i++)
# answers[i] = -1;
#
# answers[0] = 0;
# answers[1] = 1;
# answers[2] = 1;
#
# return real_fib(x, answers);
# }
#
# int main (int argc, char **argv)
# {
# int result;
#
# result = fib(3);
# printf ("fibonacci(3) = %d\n", result);
# result = fib(4);
# printf ("fibonacci(4) = %d\n", result);
# result = fib(5);
# printf ("fibonacci(5) = %d\n", result);
# result = fib(6);
# printf ("fibonacci(6) = %d\n", result);
# result = fib(7);
# printf ("fibonacci(7) = %d\n", result);
# result = fib(8);
# printf ("fibonacci(8) = %d\n", result);
# result = fib(9);
# printf ("fibonacci(9) = %d\n", result);
# result = fib(10);
# printf ("fibonacci(10) = %d\n", result);
#
# return 0;
# }
#
CHECK: "version": 9,
CHECK: "#functions": 3,
CHECK: "#functions with location": 3,
CHECK: "#out-of-line functions": 3,
CHECK: "#inlined functions": 8,
CHECK: "#inlined functions with abstract origins": 8,
CHECK: "#unique source variables": 9,
CHECK: "#source variables": 33,
# Ideally the value below would be 33 but currently it's not.
CHECK: "#source variables with location": 24,
CHECK: "#call site entries": 8,
CHECK: "sum_all_variables(#bytes in parent scope)": 3072,
CHECK: "sum_all_variables(#bytes in parent scope covered by DW_AT_location)": 1188,
CHECK: "#bytes within functions": 636,
CHECK: "#bytes within inlined functions": 388,
CHECK: "#params": 13,
CHECK-NEXT: "#params with source location": 13,
CHECK-NEXT: "#params with type": 13,
CHECK-NEXT: "#params with binary location": 13,
CHECK-NEXT: "#local vars": 20,
CHECK-NEXT: "#local vars with source location": 20,
CHECK-NEXT: "#local vars with type": 20,
# Ideally the value below would be 20, but currently it's not.
CHECK-NEXT: "#local vars with binary location": 11,