<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ARM and AArch64 NEON VLD/VST have warnings about type float16_t/poly8_t/poly16_t pointers"
href="http://llvm.org/bugs/show_bug.cgi?id=17718">17718</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARM and AArch64 NEON VLD/VST have warnings about type float16_t/poly8_t/poly16_t pointers
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>Hao.Liu@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=11436" name="attach_11436" title="f16-p8-p16-pointers.c">attachment 11436</a> <a href="attachment.cgi?id=11436&action=edit" title="f16-p8-p16-pointers.c">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>