[llvm-bugs] [Bug 38726] New: clang-cl's intrin.h does not include several intrinsics for aarch64

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 27 12:53:53 PDT 2018


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

            Bug ID: 38726
           Summary: clang-cl's intrin.h does not include several
                    intrinsics for aarch64
           Product: clang
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Headers
          Assignee: unassignedclangbugs at nondot.org
          Reporter: froydnj at gmail.com
                CC: dmajor at mozilla.com, llvm-bugs at lists.llvm.org

Compiling a non-trivial file in Firefox with `clang-cl
--target=aarch64-pc-windows-msvc` gives:

In file included from
c:/mozilla-central/build/win32/crashinjectdll/crashinjectdll.cpp:6:
In file included from c:/mozilla-central/INC6\windows.h:171:
In file included from c:/mozilla-central/INC5\windef.h:24:
In file included from c:/mozilla-central/INC5\minwindef.h:182:
c:/mozilla-central/INC6\winnt.h(5832,21):  error: use of undeclared identifier
'_ReadStatusReg'
    return (DWORD64)_ReadStatusReg(ARM64_PMCCNTR_EL0);
                    ^
c:/mozilla-central/INC6\winnt.h(5849,5):  error: use of undeclared identifier
'_WriteStatusReg'
    _WriteStatusReg(ARM64_PMSELR_EL0, Counter);
    ^
c:/mozilla-central/INC6\winnt.h(5850,21):  error: use of undeclared identifier
'_ReadStatusReg'
    return (DWORD64)_ReadStatusReg(ARM64_PMXEVCNTR_EL0);
                    ^
c:/mozilla-central/INC6\winnt.h(22063,27):  error: use of undeclared identifier
'__getReg'
    return (struct _TEB *)__getReg(18);
                          ^
c:/mozilla-central/INC6\winnt.h(22072,23):  error: use of undeclared identifier
'__getReg'
    return ((PNT_TIB )__getReg(18))->FiberData;

The small sample of files that I have attempted to compile indicate that these
are the only problematic intrinsics.

-- 
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/20180827/7bdc6cad/attachment.html>


More information about the llvm-bugs mailing list