<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - static_casting to a large unsigned long long from a double causes an FPE"
href="https://bugs.llvm.org/show_bug.cgi?id=17686">bug 17686</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Fixed By Commit(s)</td>
<td>
</td>
<td>348251
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - static_casting to a large unsigned long long from a double causes an FPE"
href="https://bugs.llvm.org/show_bug.cgi?id=17686#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - static_casting to a large unsigned long long from a double causes an FPE"
href="https://bugs.llvm.org/show_bug.cgi?id=17686">bug 17686</a>
from <span class="vcard"><a class="email" href="mailto:llvm-dev@redking.me.uk" title="Simon Pilgrim <llvm-dev@redking.me.uk>"> <span class="fn">Simon Pilgrim</span></a>
</span></b>
<pre>(In reply to Paul.Zimmermann from <a href="show_bug.cgi?id=17686#c8">comment #8</a>)
<span class="quote">> I suggest to change the code as follows:
>
> result = select (x < 0x8000000000000000), fp_to_sint(x), 0x8000000000000000
> + fp_to_sint(x - 0x8000000000000000)
>
> This should not raise any exception.</span >
Fixed by rL348251 which added a TargetLowering::shouldUseStrictFP_TO_INT
override to allow the opt-in use of the above code.</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>