llvm.compiler-rt-builtins
The compiler-rt builtins as a source package: LLVM's replacement for libgcc — the routines a compiler emits calls to — compiled with the consuming program's own flags
mcpp add llvm.compiler-rt-builtins@22.1.8.6
Usage
From this repository's own test project — built and run by CI, not written for the website.
// The member builds on every runner; the package it names is for the ok-image rows.
import std;
int main() {
// 128-bit division, which the builtins supply on the rows this package serves.
const unsigned __int128 n = (static_cast<unsigned __int128>(1) << 100) + 7;
const unsigned __int128 q = n / 3;
std::println("compiler-rt-builtins-tests: {}", static_cast<unsigned long long>(q % 1000003));
return q * 3 + (n % 3) == n ? 0 : 1;
}
tests/examples/compiler-rt-builtins/tests/resolves.cpp · project tests/examples/compiler-rt-builtins
Build · upstream manifest
- targets
compiler-rt-builtins (lib)- manifest version
22.1.8.6- source
https://raw.githubusercontent.com/mcpplibs/compiler-rt-builtins/22.1.8.6/mcpp.toml