<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 --- - 32bit Linux, the assignment operator of vector value cause FPU stack over-flow."
href="http://llvm.org/bugs/show_bug.cgi?id=15388">15388</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>32bit Linux, the assignment operator of vector value cause FPU stack over-flow.
</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>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>LLVM Codegen
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>qiancong@multicorewareinc.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=10104" name="attach_10104" title="A bug test code">attachment 10104</a> <a href="attachment.cgi?id=10104&action=edit" title="A bug test code">[details]</a></span>
A bug test code
In 32bit Linux, asignment operator or pass argument for the vector type value
defined by ext_vector, may cause FPU register stack over-flow, thus some
following float operator get not correct result!
analyze the attached demo code(int 32bit Linux Box):
from the disassembled code, we found that clang generate asm code like
"movq mm0, [esp+4]" for char8/uchar8 asignment operator, but no "EMMS"
instruction to reset, so cause FPU register stack over-flow , if any float
operator was followed, maybe cause the float result not correct..
I have test this demo code by clang3.2 and clang3.3, can represent the bug..
Any fix or update of the bug, please tell me. I will very appreciate for your
help.</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>