<html>
<head>
<base href="https://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 --- - clang O3/O2 error for Linpack with NEON instructions"
href="https://llvm.org/bugs/show_bug.cgi?id=26884">26884</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang O3/O2 error for Linpack with NEON instructions
</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>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>compile-fail
</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>junaidshuja@siswa.um.edu.my
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, renato.golin@linaro.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=16012" name="attach_16012" title="source file">attachment 16012</a> <a href="attachment.cgi?id=16012&action=edit" title="source file">[details]</a></span>
source file
I am using code Neonlinpack code from,
<a href="http://www.roylongbottom.org.uk/Raspberry_Pi_Benchmarks.zip">http://www.roylongbottom.org.uk/Raspberry_Pi_Benchmarks.zip</a>
When I compile it with clang without any optimization flags, it runs OK. But
when I use O3/O2 flags in command,
clang -target armv7a-linux-gnueabihf -mfpu=neon -mfloat-abi=hard linpackneon.c
cpuidc.c -O3 -o linpackneon
I get the following errors
In file included from cpuidc.c:13:
In file included from /usr/include/math.h:426:
/usr/include/bits/mathinline.h:756:25: error: invalid output constraint '=&q'
in
asm
: "=t" (__value), "=&q" (__ignore), "=m" (__cwtmp), \
^
/usr/include/bits/mathinline.h:756:25: error: invalid output constraint '=&q'
in
asm
/usr/include/bits/mathinline.h:756:25: error: invalid output constraint '=&q'
in
asm
/usr/include/bits/mathinline.h:774:25: error: invalid output constraint '=&q'
in
asm
: "=t" (__value), "=&q" (__ignore), "=m" (__cwtmp), \
^
/usr/include/bits/mathinline.h:774:25: error: invalid output constraint '=&q'
in
asm
/usr/include/bits/mathinline.h:774:25: error: invalid output constraint '=&q'
in
asm
/usr/include/bits/mathinline.h:881:3: error: unknown register name 'st' in asm
__lrint_code;
^
/usr/include/bits/mathinline.h:876:40: note: expanded from macro '__lrint_code'
: "=m" (__lrintres) : "t" (__x) : "st");
What is the reason behind these errors. I do not encounter such errors with
GCC. The files can be downloaded from the above link and I am attaching
cpuidc.c in the attachments.</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>