<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:nemanja.i.ibm@gmail.com" title="Nemanja Ivanovic <nemanja.i.ibm@gmail.com>"> <span class="fn">Nemanja Ivanovic</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Atomicrmw min i16 produces wrong result on PowerPC"
href="https://bugs.llvm.org/show_bug.cgi?id=30451">bug 30451</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;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>REOPENED
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Atomicrmw min i16 produces wrong result on PowerPC"
href="https://bugs.llvm.org/show_bug.cgi?id=30451#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Atomicrmw min i16 produces wrong result on PowerPC"
href="https://bugs.llvm.org/show_bug.cgi?id=30451">bug 30451</a>
from <span class="vcard"><a class="email" href="mailto:nemanja.i.ibm@gmail.com" title="Nemanja Ivanovic <nemanja.i.ibm@gmail.com>"> <span class="fn">Nemanja Ivanovic</span></a>
</span></b>
<pre>This isn't the same problem (or really a compiler problem at all). The call to
julia_f_369 is with the value 65535 (i.e. (i16)-1) which is certainly larger
than zero. So the program behaves correctly - exactly as specified in the IR.
You need to specify the extension type for the parameter to the function.
Namely:
define i16 @julia_f_369(i16 %0)
really needs to be:
define i16 @julia_f_369(i16 signext %0)
Otherwise it is "anyext" which defaults to the cheapest one - on PPC, it is
zext.</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>