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

            Bug ID: 41503
           Summary: Clang header file invpcidintrin.h does not compile
                    with vectorcall ABI
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: code.optimi...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk

Given the following trivial example:
Win64$ cat test_imm_vectorcall.c                                                
#include <intrin.h>                                                             

int f(int i, int j) { return i+j; }                                             
Win64$

It will not compile with the combination of vectorcall ABI and -march/-mtune =
skylake-avx512:

/c/Users/dparks/LLVM-8.0.0/bin/clang -c -c -mtune=skylake-avx512
-march=skylake-avx512 -Xclang -fdefault-calling-conv=vectorcall
test_imm_vectorcall.c                                                           
In file included from test_imm_vectorcall.c:1:                                  
c:\Users\dparks\LLVM-8.0.0\lib\clang\8.0.0\include\intrin.h:181:14: error:
function declared 'cdecl' here was previously declared without calling
convention                                                         
void __cdecl _invpcid(unsigned int, void *);                                    
             ^                                                                  
c:\Users\dparks\LLVM-8.0.0\lib\clang\8.0.0\include\invpcidintrin.h:33:1: note:
previous declaration is here                                                    
_invpcid(unsigned int __type, void *__descriptor) {                             
^                                                                               
1 error generated.


This problem also occurs with Clang 7.0.1, but does not occur with Clang 6.0.0.

-- 
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