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

            Bug ID: 46068
           Summary: No support for modes KF/KC cause failures to compile
                    math.h with -mfloat128 on PPC
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: nemanja.i....@gmail.com
                CC: llvm-bugs@lists.llvm.org, neeil...@live.com,
                    richard-l...@metafoo.co.uk

The following test case does not compile with clang (and also causes failures
to configure projects when -mfloat128 is in the FLAGS):

#include <math.h>
__CFLOAT128 testkf(__CFLOAT128 a, __CFLOAT128 b) {
  return a + b;
}

$ clang -I /opt/at12.0/include -S -mfloat128 -mcpu=power9 noKC.c -O
In file included from noKC.c:1:
In file included from /opt/at12.0/include/math.h:43:
/opt/at12.0/include/bits/floatn.h:82:52: error: unknown machine mode '__KC__'
typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__KC__)));
                                                   ^
1 error generated.

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

Reply via email to