[all-commits] [llvm/llvm-project] 55f6f9: [orc-rt] Add initial C addressing regression tests...

Lang Hames via All-commits all-commits at lists.llvm.org
Mon Sep 28 00:26:25 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55f6f9304fff9a69373d6703d782b8e401d0af86
      https://github.com/llvm/llvm-project/commit/55f6f9304fff9a69373d6703d782b8e401d0af86
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M orc-rt/cmake/OrcRTTesting.cmake
    M orc-rt/test/regression/README.md
    A orc-rt/test/regression/languages/c/addressing/cross-object/global-array-element-pointer-in-data.test
    A orc-rt/test/regression/languages/c/addressing/cross-object/global-data-load.test
    A orc-rt/test/regression/languages/c/addressing/cross-object/hidden-data-load.test
    A orc-rt/test/regression/languages/c/addressing/same-object/global-data-pointer-in-data.c
    A orc-rt/test/regression/languages/c/addressing/same-object/global-data-store.c
    A orc-rt/test/regression/languages/c/addressing/same-object/static-array-element-load.c
    A orc-rt/test/regression/languages/c/addressing/same-object/static-data-load.c
    M orc-rt/test/regression/languages/c/lit.local.cfg
    M orc-rt/test/regression/lit.cfg.py

  Log Message:
  -----------
  [orc-rt] Add initial C addressing regression tests. (#226901)

Add tests that check that JIT'd C code can address data, both in the
same object and in other objects. Each test covers a single construct
(e.g. a load of static data, or a pointer to an array element in another
object stored in initialized data), since linker/loader bugs usually
crash the JIT'd program, and a crash identifies only the failing test.
Each test runs at -O0 and -O2.

To support multi-object tests, add a split-file substitution and lit
feature, and accept .test files in languages/c.

Update the README's test conventions to match: one construct per test,
"Check that" and "Stresses:" header comments, -O0 and -O2 RUN lines, and
guidance on keeping constructs alive under optimization without hiding
the optimized lowering.

Assisted-by: Claude



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list