[Lldb-commits] [lldb] [lldb][RISCV] Use uint64_t for emulating ADDI (PR #160550)

Ivan Tadeu Ferreira Antunes Filho via lldb-commits lldb-commits at lists.llvm.org
Thu Sep 25 08:06:47 PDT 2025


itf wrote:

> Is there a test case we can use to emulate this instruction correctly? I see lldb/unittests/Instruction/RISCV/TestRISCVEmulator.cpp as the best place to do this. Testing the edge case that was failing to show it failing before and succeeding after the fix.

I don't think we can write a test case for "confirm this is not undefined behavior", or at least I don't know a way to test for undefined behavior directly from a test


https://github.com/llvm/llvm-project/pull/160550


More information about the lldb-commits mailing list