-
Notifications
You must be signed in to change notification settings - Fork 13.3k
AVX-512: Unable to copy EFLAGS physical register! #38151
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
Labels
Comments
The error message is a red herring. It's actually hitting an llvm_unreachable if you use a debug build. Cannot emit physreg copy instruction |
Fixed in r343443 |
Merge into 7.0.1? |
Reopening and marking block 7.0.1 |
We should probably also take r343428 into 7.0.1 so we stop getting misleading bug titles. |
Merged: r344804 r344805 |
mentioned in issue #38454 |
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Extended Description
We've got a bug report from one of our users attempting to build Chromium using clang. The build is failing for him with the following error message:
fatal error: error in backend: Unable to copy EFLAGS physical register!
x86_64-pc-linux-gnu-clang++: error: clang frontend command failed with exit code 70 (use -v to see invocation)
I'm attaching a minimal test case prepared by Sergei Trofimovich:
// $ clang++ -march=skylake-avx512 -O2 tab.cpp
// fatal error: error in backend: Unable to copy EFLAGS physical register!
bool a();
int b, c;
float d;
float fn2() {
int e = a();
double f = e ? 0.75f : 0;
if (c)
d = e ? 0 : b;
return f;
}
I was able to reproduce the issue with today's LLVM+Clang trunk.
The text was updated successfully, but these errors were encountered: