[clang] [llvm] [CodeView] Add line entries for instructions in MS inline asm (PR #193007)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 06:11:53 PDT 2026


================

----------------
Nerixyz wrote:

It would be nice if this tested something more involved where one instruction is encoded with more than one byte. I think the example from the issue can be a good test here:
```cpp
int a, b;

int main(int argc, char **argv)
{
    __asm
    {
        lea eax, a
        mov dword ptr [eax], 1

        lea ebx, b
        mov dword ptr [ebx], 1

        mov eax, [eax]
        add [ebx], eax

        inc eax

        imul dword ptr [ebx]
        mov [ebx], eax
    }

    return 0;
}
```

That one also has some empty lines in there.

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


More information about the llvm-commits mailing list