Login
You're viewing the code4lib.social public feed.

Replies

  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 27, 2026, 10:30 PM

    @xentrac @regehr The lit tests simply check input LLVM IR and output LLVM IR after the transformation. It fundamentally cannot be a correctness check, because that would require compiling it down to assembly, having a known-gold answer to each snippet (this means having a main function, in particular), and running it on actual hardware to "check the answer". Further, different hardware may report different answers, and some hardware may be buggy, so the problem of checking correctness can only be done by mathematically reasoning about the semantics of the LLVM IR, otherwise known as a traslation-validator or tv.

    💬 0🔄 0⭐ 0
  • Nov 27, 2026, 11:14 PM

    @artagnon @xentrac but to answer Kragen... this test is not literally found in the test suite, but is rather a reduced version of one that is (I forgot that I had asked an LLM to reduce the bug triggers while it was doing triage for me).

    but, a test triggering the same miscompile triggered by my test case is found in the test suite

    but also it turns out my bug report was a dup :(

    💬 2🔄 0⭐ 0
  • Nov 27, 2026, 11:21 PM

    @artagnon @xentrac but also -- we've found plenty of LLVM bugs using its own tests, just because we have a great oracle. I've done the same thing with other research projects previously, for example the code that eventually became the integer parts of UBsan found bugs in most everything using their own unit tests

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0