[LLVMbugs] [Bug 20691] New: missing codegen for __builtin_signbitl for ppc_fp128

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 18 00:14:02 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20691

            Bug ID: 20691
           Summary: missing codegen for __builtin_signbitl for ppc_fp128
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

nlewycky at ducttape:~$ cat signbit.c
int test1(float x) { return __builtin_signbitf(x); }
int test2(double x) { return __builtin_signbit(x); }
int test3(long double x) { return __builtin_signbitl(x); }
nlewycky at ducttape:~$ llvm/Debug+Asserts/bin/clang -target powerpc64-linux-gnu
signbit.c -flto -S -o -
signbit.c:3:35: error: cannot compile this builtin function yet
int test3(long double x) { return __builtin_signbitl(x); }
                                  ^~~~~~~~~~~~~~~~~~~~~
1 error generated.

This breaks std::signbit in libstdc++ 4.9's cmath header.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140818/260e651b/attachment.html>


More information about the llvm-bugs mailing list