-
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
[PowerPC] fatal error: error in backend: Cannot select: 0x8e697e8320: f128,f128 = fsincos 0x8e697eb450 #76442
Comments
@llvm/issue-subscribers-backend-powerpc Author: None (pkubaj)
Clang 17.0.6 on Linux (Gentoo ppc64le) and FreeBSD 15.0 (powerpc64le)
Test case:
Compile with: Output:
This issue has been confirmed to happen on Linux, but its origin is WIP patch to switch FreeBSD/powerpc64le to IEEE long double. The issue happens when building msun library (FreeBSD's libm). |
Confirmed. I modified the original case and removed -Werror a bit to make it compile: // Reproduce with driver:
// clang -target powerpc64le -fno-math-errno test.c -mabi=ieeelongdouble
long double cosl(long double);
long double sinl(long double);
long double theta;
int mycpowl(void) { long double theta2 = cosl(theta) * sinl(theta); return 0; } |
CC @DimitryAndric |
[PowerPC] Expand FSINCOS of fp128 (#76494) This fixes "fatal error: error in backend: Cannot select: 0x6d420285c0: f128,f128 = fsincos 0x6d4202b6f0" when compiling s_cpowl.c for powerpc64le. Upstream ticket: llvm/llvm-project#76442 Reported by: pkubaj MFC after: 3 days
[PowerPC] Expand FSINCOS of fp128 (#76494) This fixes "fatal error: error in backend: Cannot select: 0x6d420285c0: f128,f128 = fsincos 0x6d4202b6f0" when compiling s_cpowl.c for powerpc64le. Upstream ticket: llvm/llvm-project#76442 Reported by: pkubaj MFC after: 3 days (cherry picked from commit 7963968)
[PowerPC] Expand FSINCOS of fp128 (#76494) This fixes "fatal error: error in backend: Cannot select: 0x6d420285c0: f128,f128 = fsincos 0x6d4202b6f0" when compiling s_cpowl.c for powerpc64le. Upstream ticket: llvm/llvm-project#76442 Reported by: pkubaj MFC after: 3 days (cherry picked from commit 7963968)
[PowerPC] Expand FSINCOS of fp128 (#76494) This fixes "fatal error: error in backend: Cannot select: 0x6d420285c0: f128,f128 = fsincos 0x6d4202b6f0" when compiling s_cpowl.c for powerpc64le. Upstream ticket: llvm/llvm-project#76442 Reported by: pkubaj MFC after: 3 days
Clang 17.0.6 on Linux (Gentoo ppc64le) and FreeBSD 15.0 (powerpc64le)
Test case:
Compile with:
/usr/lib/llvm/17/bin/clang-17 -cc1 -emit-obj -target-cpu ppc64le -mabi=ieeelongdouble -Werror -Weverything -Wno-gnu-line-marker -fgnuc-version=4.2.1 s_cpowl-062d88.c
Output:
This issue has been confirmed to happen on Linux, but its origin is WIP patch to switch FreeBSD/powerpc64le to IEEE long double. The issue happens when building msun library (FreeBSD's libm).
The text was updated successfully, but these errors were encountered: