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: unassignedclangb...@nondot.org
Reporter: pablo.bar...@arm.com
CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
neeil...@live.com, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs