[llvm-bugs] [Bug 41503] New: Clang header file invpcidintrin.h does not compile with vectorcall ABI

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 15 10:39:59 PDT 2019


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: unassignedclangbugs at nondot.org
          Reporter: code.optimizer at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190415/2ae842b9/attachment.html>


More information about the llvm-bugs mailing list