PowerPC fp128
-> half
uses __trunctfhf2
but should be __trunckfhf2
#98126
Labels
fp128
-> half
uses __trunctfhf2
but should be __trunckfhf2
#98126
Output on
powerpc64-unknown-linux-gnu
:Note that this emits
__trunctfhf2
. According to https://gcc.gnu.org/wiki/Ieee128PowerPC (second table in section 2.2),tf
is for whateverlong double
is in C, which on PPC is usually IBM double double, butkf
is always for IEEEbinary128
. So it seems like this should instead emit a symbol named__trunckfhf2
.This would be consistent with other fptrunc operations for
fp128
, which lower tokf
symbols (__trunckfsf2
,__trunckfdf2
).There is more discussion at this thread #92866. Neither GCC nor LLVM provide this symbol yet in libgcc/compiler-rt, but I don't think that should block correcting the symbol name.
Tested at compiler explorer using
19.0.0git
. Link: https://llvm.godbolt.org/z/7MosczYcrThe text was updated successfully, but these errors were encountered: