-
Notifications
You must be signed in to change notification settings - Fork 13.4k
clang 15 fails to compile program using smmintrin.h
on ppc64el
#64664
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
Comments
@llvm/issue-subscribers-backend-powerpc |
Could you please try 17 or |
I can try in a few days, the application is quite large so would need to ensure the rest of it builds enough with 17 to get to the same point. That said, I highly doubt 17 or |
I can confirm that this is NOT fixed in trunk. It "works" with C, but not with C++. Namely, it compiles in C files as long as one does not use the builtins that haven't been implemented. Presumably a call to a function such as The frustrating thing is that I think we have previously had a similar issue where these wrappers don't work on C++ and we've clearly either not fixed them all or we've introduced new ones. We need to add C++ test cases for all of these wrappers on top of the C tests that we have (and we should test with A simple test case that shows the offending builtins just in this file:
Compilation:
|
smmintrin.h uses __builtin_mffs, __builtin_mffsl, __builtin_mtfsf and __builtin_set_fpscr_rn. This patch replaces the uses with ppc prefix and implement the missing ones. This fixes issue llvm#64664.
Updating Clang to version 15 yields new compilation errors on an existing program that includes the
smmintrin.h
compatibility header. These errors originate from within Clang's own internal header files, not from the application itself.This issue may have been introduced in this patch series:
https://reviews.llvm.org/D119407
The text was updated successfully, but these errors were encountered: