Skip to content

Add executable LoongArch64 LP64S C ABI coverage #481

Closed

Description

@LunaStev

Problem

PR #474 implements LoongArch64 LP64S, LP64F, and LP64D object/C-ABI classification and validates all three modes against LLVM/Clang IR and ELF flags. Runtime C interoperability under QEMU currently exercises LP64D only because the pinned official Loongson glibc toolchain supplies an LP64D userspace.

LP64S hosted linking is intentionally supported when a matching sysroot is available, so it should eventually have an independent executable ABI fixture instead of relying only on IR shape and pre-link validation. LP64F remains object-only because glibc does not provide that hosted ABI.

Scope

  • Identify and pin an authoritative LP64S compiler/sysroot, or build a freestanding LP64S C/Wave fixture that does not claim glibc coverage.
  • Execute scalar, floating, mixed aggregate, large aggregate, variadic, and exported-call fixtures under QEMU.
  • Verify LP64S loader/CRT selection separately if an authoritative hosted userspace is available.
  • Keep LP64F explicitly object-only unless its runtime contract becomes standardized.
  • Reuse the backend-neutral fixtures introduced by feat: expand native 64-bit architecture support #474 where possible.

Acceptance criteria

  • Wave-to-C and C-to-Wave LP64S calls execute under an independent toolchain/runtime contract.
  • The test proves floats use integer argument registers under LP64S.
  • CI does not advertise hosted LP64S runtime coverage unless a matching sysroot is actually present.
  • LP64D coverage remains unchanged and LP64F remains clearly scoped.

Related: #93, #467, #474

Activity

  1. added
    enhancement
    needs testing
    cross-platform
    on Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cross-platformenhancementneeds testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions