[LLVMbugs] [Bug 17718] New: ARM and AArch64 NEON VLD/VST have warnings about type float16_t/poly8_t/poly16_t pointers
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 28 23:07:12 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17718
Bug ID: 17718
Summary: ARM and AArch64 NEON VLD/VST have warnings about type
float16_t/poly8_t/poly16_t pointers
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: Hao.Liu at arm.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 11436
--> http://llvm.org/bugs/attachment.cgi?id=11436&action=edit
f16-p8-p16-pointers.c
This bug is in Clang frontend. The test case is in attachment.
There are warnings about float16_t *, poly8_t * and poly16_t * when compiling
into AArch64 NEON code. To run the test case(AArch64):
./Debug+Asserts/bin/clang -cc1 -internal-isystem
./Debug+Asserts/lib/clang/3.4/include -triple aarch64-none-linux-gnu
-target-feature +neon -ffp-contract=fast -S -O3 -o - f16-p8-p16-pointer.c
f16-p8-p16-pointers.c:4:19: warning: incompatible pointer types assigning to
'const unsigned short *' from 'const float16_t *' (aka 'const half *')
return vld1_f16(a);
^
./Debug+Asserts/lib/clang/3.4/include/arm_neon.h:1456:38: note: expanded from
macro 'vld1_f16'
(float16x4_t)__builtin_neon_vld1_v(__a, 6); })
^
...
The warning message of ARM NEON is like AArch64 but only float16_t pointer has
warning. To run the test case(ARM):
./Debug+Asserts/bin/clang -cc1 -internal-isystem
./Debug+Asserts/lib/clang/3.4/include -triple thumbv7s-apple-darwin -target-abi
apcs-gnu -target-cpu swift -ffreestanding -Os -S -o - f16-p8-p16-pointer.c
arm_neon.h and the test case have no problem. There may be some problem in
frontend but has not been found yet.
--
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/20131029/c1eb7527/attachment.html>
More information about the llvm-bugs
mailing list