<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 - FMA Header Included but not wanted"
   href="https://bugs.llvm.org/show_bug.cgi?id=33433">33433</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>FMA Header Included but not wanted
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Linux
          </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>Headers
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>cm7695@yahoo.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18626" name="attach_18626" title="Test file for compilation">attachment 18626</a> <a href="attachment.cgi?id=18626&action=edit" title="Test file for compilation">[details]</a></span>
Test file for compilation

My machine supports AVX, not FMA.
Compile test.c with:
clang -mavx

It says: clang -mavx test.c
test.c:6:25: error: redefinition of '_mm256_fmadd_pd'
  static inline __m256d _mm256_fmadd_pd(__m256d a, __m256d b, __m256d c) {
                        ^
/usr/bin/../lib64/clang/4.0.0/include/fmaintrin.h:161:1: note: previous
definition is here
_mm256_fmadd_pd(__m256d __A, __m256d __B, __m256d __C)

Headers for FMA are included. So clearly a redefinition happens. But this
behaviour is not normal.


If I compile with
gcc -mavx, it compiles and run the normal way.</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>