This method introduces new CMake variable PPC_LINUX_DEFAULT_IEEELONGDOUBLE (false by default) to enable fp128 as default long double format.
We need to make some tests explicitly set long double type, otherwise they fail in either config.
Differential D118110
[CMake] [Clang] Add CMake build option to specify long double format on PowerPC qiucf on Jan 25 2022, 1:22 AM. Authored by
Details
This method introduces new CMake variable PPC_LINUX_DEFAULT_IEEELONGDOUBLE (false by default) to enable fp128 as default long double format. We need to make some tests explicitly set long double type, otherwise they fail in either config.
Diff Detail
Event TimelineComment Actions It is probably not worth the effort since there won't be that many test cases that test the front end's IR generation for long double, but there should be a way to set up lit to know the default through its configuration files.
Comment Actions Yes, that is not a must for now, but we should try to do it .
Let us apply it to ppc64le only for now.
Comment Actions
Yes, lit doesn't know about it. But lit can't do things in IR test like #ifdef in C nor change default semantics of clang, so it seems not able to help in such cases. |