Files
python-bpf/tests/c-form
Pragyansh Chaturvedi f3cc6c9ce7 Tests: Add the integer-signedness C reference
Eight cases, each reading operands from .bss globals (so clang cannot fold)
and writing its result to a .bss global (so the runtime proof is a bpftool
map dump). The IR clang emits is the specification for the signedness work:

    s64 = u32           zext i32 -> i64        (widening is source-driven)
    u64 = s32           sext i32 -> i64
    u32 / s32           udiv i32               (usual arithmetic conversions)
    u64 > s64           icmp ugt i64
    u32 * u32 -> u64    mul i32, then zext     (wraps at 32 before widening)
    u32 >> 4            lshr i32
    s32 >> 4            ashr i32

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BSDVsZH5NtoASyxB8FCtGU
2026-09-17 20:34:21 +05:30
..
2025-11-25 22:51:24 +05:30
2025-10-08 13:57:09 +05:30
2025-09-30 21:05:07 +05:30
2025-09-30 21:05:07 +05:30
2025-09-30 21:05:07 +05:30
2025-09-30 21:05:07 +05:30
2025-11-30 05:53:32 +05:30
2025-11-21 23:01:08 +05:30
2025-11-21 21:47:10 +05:30
2025-10-01 23:51:18 +05:30
2025-10-26 02:12:33 +05:30
2025-10-21 06:03:16 +05:30
2025-11-30 05:53:32 +05:30