<div dir="ltr">We should simply remove the use of floating point math from LLVM for anything other than statistics. It has been a *very* long standing problem.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Feb 3, 2014 at 4:44 AM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jakob,<br>
<br>
On i686 host, I saw different output between llc compiled by<br>
 gcc-4.7 (-mfpmath=387 by default) and<br>
 llc compiled by clang (-mfpmath=sse, I guess).<br>
It seems "clang -mno-sse" can suppress this issue.<br>
<br>
Although I am still investigating, I could suggest (float)Hysteresis<br>
as more simple number<br>
to suppress this issue.<br>
<br>
I suggest (64225 / 65536.0f) or (2007 / 2048.0f). The latter is more simple :)<br>
<br>
This issue affects i686 selfhosting, for example;<br>
<a href="http://bb.pgr.jp/builders/clang-3stage-i686-cygwin" target="_blank">http://bb.pgr.jp/builders/clang-3stage-i686-cygwin</a><br>
<br>
Excuse me to bother you, thanks.<br>
<br>
...Takumi<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>