[llvm-bugs] [Bug 33433] New: FMA Header Included but not wanted

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 13 00:42:38 PDT 2017


            Bug ID: 33433
           Summary: FMA Header Included but not wanted
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Headers
          Assignee: unassignedclangbugs at nondot.org
          Reporter: cm7695 at yahoo.de
                CC: llvm-bugs at lists.llvm.org

Created attachment 18626
  --> https://bugs.llvm.org/attachment.cgi?id=18626&action=edit
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.

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/20170613/ff61ff9d/attachment.html>

More information about the llvm-bugs mailing list