cb424d7448
verify-patch-sanity.py validates every active recipe .patch has internally- consistent hunk line counts — catching the 'malformed patch at line N' failure at commit/CI/preflight time instead of hours into a cook. This cycle hit that class three times (qtwaylandscanner, sddm, xwayland), each only discovered when cookbook tried to apply the patch. Running it across the repo found 29 latent malformed patches (validated against GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22'). They were harmless only because they sit in vendored recipes (baked, not re- applied) — but would fail on any version-bump re-derivation. --fix recounts the hunk headers (body untouched) and repaired all 29. Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test (test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats (empty placeholders, bare-@@ git hunks).
20 lines
701 B
C
20 lines
701 B
C
// RUN: %clang_cc1 -triple x86_64-windows-gnu -emit-llvm -o - %s \
|
|
// RUN: | FileCheck %s --check-prefix=CHECK-GNU64
|
|
// __float128 is unsupported on MSVC
|
|
|
|
__float128 fp128_ret(void) { return 0; }
|
|
// CHECK-GNU64: define dso_local <2 x i64> @fp128_ret()
|
|
|
|
__float128 fp128_args(__float128 a, __float128 b) { return a * b; }
|
|
// CHECK-GNU64: define dso_local <2 x i64> @fp128_args(ptr noundef %0, ptr noundef %1)
|
|
|
|
void fp128_vararg(int a, ...) {
|
|
// CHECK-GNU64-LABEL: define dso_local void @fp128_vararg
|
|
__builtin_va_list ap;
|
|
__builtin_va_start(ap, a);
|
|
__float128 i = __builtin_va_arg(ap, __float128);
|
|
// CHECK-GNU64: load ptr, ptr
|
|
// CHECK-GNU64: load fp128, ptr
|
|
__builtin_va_end(ap);
|
|
}
|