https://bugs.llvm.org/show_bug.cgi?id=35738

            Bug ID: 35738
           Summary: [PowerPC] Software 128-bit floating point support is
                    unimplemented
           Product: compiler-rt
           Version: 5.0
          Hardware: Other
                OS: other
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: compiler-rt
          Assignee: unassignedb...@nondot.org
          Reporter: vit9...@avp.su
                CC: llvm-bugs@lists.llvm.org

Created attachment 19601
  --> https://bugs.llvm.org/attachment.cgi?id=19601&action=edit
ppc32 long double format from gcc repo

Starting with the merged https://reviews.llvm.org/D15811 LLVM gained support
for software long double support on 32-bit PowerPC targets.

However, for the time being there is still no compiler-rt support for the
routines llvm emits. As a result, one cannot use software floating point
support until the following builtins are implemented.

This function set implements long double comparison similarly to float/double
analogues:
int __gcc_qeq (double, double, double, double); // __eqdf2
int __gcc_qne (double, double, double, double); // __nedf2
int __gcc_qge (double, double, double, double); // __gedf2
int __gcc_qle (double, double, double, double); // __ledf2

This function set allows to convert between long double and other types:
long double __gcc_stoq (float);
long double __gcc_dtoq (double);
float __gcc_qtos (double, double);
double __gcc_qtod (double, double);
unsigned int __gcc_qtou (double, double);
long double __gcc_itoq (int);
long double __gcc_utoq (unsigned int);

GCC has a fairly decent format description, which I attached to the message.
The implementation should be very small, but due to licensing issues I do not
think libgcc code could simply be taken. The original code appears to be
contributed by Apple under GPLv2.

Could anybody submit a patch following this description or suggest the actions
to be made?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to