[llvm-bugs] [Bug 47471] New: Clang allows unofficial ACLE intrinsics

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Sep 9 03:29:43 PDT 2020


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

            Bug ID: 47471
           Summary: Clang allows unofficial ACLE intrinsics
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: pablo.barrio at arm.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

Clang supports the following C/C++ intrinsics:

    vceqz_p16
    vceqzq_p16
    vmlaq_n_f64
    vmlsq_n_f64

which are not part of the ACLE. These intrinsics are currently exposed through
arm_neon.h, thus allowing developers to write code that will not be compatible
with other toolchains (e.g. GNU).

For example a test.c as follows:

#include <arm_neon.h>
poly16x4_t neon_test(poly16x4_t a) { return vceqz_p16(a); }

Compiled with:

clang --target=aarch64-arm-none-eabi -c ~/test.c -o /dev/null

passes, but it should throw an error.

-- 
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/20200909/ea21a072/attachment.html>


More information about the llvm-bugs mailing list