[llvm] Enable logf128 constant folding for AArch64 (PR #96287)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 00:37:21 PDT 2024


https://github.com/davemgreen commented:

> logf128 is defined to take a _Float128, by the C standard. long double is not _Float128, and is not compatible with _Float128. Therefore, it should not be possible to implicitly convert a _Float128(*)(_Float128) to long double (*)(long double).

Hi - Can you explain more about how they are not compatible? Do you just mean at a type/C level? I thought that if they were the same size they would operate in the same way (i.e logl is just an alias to logf128 in libm on the system I have).

https://github.com/llvm/llvm-project/pull/96287


More information about the llvm-commits mailing list