[llvm-bugs] [Bug 46068] New: No support for modes KF/KC cause failures to compile math.h with -mfloat128 on PPC
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon May 25 20:11:49 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: nemanja.i.ibm at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200526/fe9eae49/attachment.html>
More information about the llvm-bugs
mailing list