<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Miscompile with x86 hosted release compiler targeting x64"
href="https://bugs.llvm.org/show_bug.cgi?id=19644">bug 19644</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;">CC</td>
<td>
</td>
<td>i@maskray.me
</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 - Miscompile with x86 hosted release compiler targeting x64"
href="https://bugs.llvm.org/show_bug.cgi?id=19644#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Miscompile with x86 hosted release compiler targeting x64"
href="https://bugs.llvm.org/show_bug.cgi?id=19644">bug 19644</a>
from <span class="vcard"><a class="email" href="mailto:i@maskray.me" title="Fangrui Song <i@maskray.me>"> <span class="fn">Fangrui Song</span></a>
</span></b>
<pre>Updated .ll
define void @_ZL12Test_S5303X7v() #0 {
%1 = tail call noalias i8* @meow(i64 16)
%2 = bitcast i8* %1 to i64*
%3 = load i64, i64* %2, align 4
%4 = and i64 %3, -2251799813685249
store i64 %4, i64* %2, align 4
ret void
}
; Function Attrs: nobuiltin
declare noalias i8* @meow(i64)
The AND immediate is -2251799813685249 = 0xfff7ffffffffffff
In CurDAG->Combine(BeforeLegalizeTypes, AA, OptLevel),
DAGCombiner::ReduceLoadOpStoreWidth optimizes 0xfff7ffffffffffff with: andb
$0xf7, 6(%rax)</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>