<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Intel dialect x86 assembly matching is ambiguous for single memory operand instructions, resulting in 16-bit instructions"
href="http://llvm.org/bugs/show_bug.cgi?id=20091">bug 20091</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;">Status</td>
<td>REOPENED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Intel dialect x86 assembly matching is ambiguous for single memory operand instructions, resulting in 16-bit instructions"
href="http://llvm.org/bugs/show_bug.cgi?id=20091#c23">Comment # 23</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Intel dialect x86 assembly matching is ambiguous for single memory operand instructions, resulting in 16-bit instructions"
href="http://llvm.org/bugs/show_bug.cgi?id=20091">bug 20091</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>Fixed in r216481.
$ cat t.cpp
void
NS_InvokeByIndex(void* that, unsigned int methodIndex)
{
__asm {
mov edx,[that] // vtable in edx
mov eax,methodIndex
call [edx][eax*4] // stdcall, i.e. callee cleans up stack.
}
}
$ clang -cc1 t.cpp -S -fms-extensions -o - | grep call
calll *(%edx,%eax,4)</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>