Issue 122707
Summary Windows aarch64 (w/ inline asm .align): Failed to evaluate function length in SEH unwind info
Labels new issue
Assignees
Reporter hmartinez82
    When adding an `.align` pseudo op to inline assembly (built with `clang -c`):
```c
int f(int i) {
    int result;
 __asm__ (
        ".align 5 \n"
        "add %w0, %w1, #41"
        : "=r" (result)
        : "r" (i)
        :
    );
    return result;
}
```
Clang crashes with:
```
fatal error: error in backend: Failed to evaluate function length in SEH unwind info
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: C:\\msys64\\clangarm64\\bin\\clang.exe -c align.c
1.      <eof> parser at end of file
2.      Code generation
3. Running pass 'Function Pass Manager' on module 'align.c'.
4.      Running pass 'AArch64 Assembly Printer' on function '@f'
Exception Code: 0xE0000046
#0 0x00007ff94adb6248 (C:\Windows\System32\KERNELBASE.dll+0xb6248)
#1 0x730afff85102d7d8
clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 19.1.6
Target: aarch64-w64-windows-gnu
Thread model: posix
InstalledDir: C:/msys64/clangarm64/bin
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: C:/msys64/tmp/align-f60711.c
clang: note: diagnostic msg: C:/msys64/tmp/align-f60711.sh
clang: note: diagnostic msg:

********************
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to