-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clang-18 crash: error in backend: Cannot pop empty stack! #75019
Comments
@llvm/issue-subscribers-backend-x86 Author: Anonymous (iamanonymouscs)
Clang-18 crashes on the test case.
Compiler explorer: https://godbolt.org/z/8bTYeKP7G
```
$cat mutant.c
#define X2(n) X1(n##0) X1(n##1)
#define X4(n) X2(n##0) X2(n##1)
#define X8(n) X4(n##0) X4(n##1)
#ifndef SPE #ifndef NO_FPRS int $clang-18 -c mutant.c
#0 0x00007faa8c035266 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm-18/bin/../lib/libLLVM-18.so.1+0xd2b266) PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
|
Similar to #73109. It is caused by illegal inline assembly. It is not a new regression and GCC also failed to compile. |
similar to:
|
to align with GCC asm: "+f" is not allowed to be used on output register. fix issue: llvm#75019
Clang-18 crashes on the test case.
Compiler explorer: https://godbolt.org/z/8bTYeKP7G
The text was updated successfully, but these errors were encountered: