<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - No support for modes KF/KC cause failures to compile math.h with -mfloat128 on PPC"
   href="https://bugs.llvm.org/show_bug.cgi?id=46068">46068</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>No support for modes KF/KC cause failures to compile math.h with -mfloat128 on PPC
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>10.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Frontend
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>nemanja.i.ibm@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>