<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - 128-bit ABI on Windows incorrectly generated"
href="http://llvm.org/bugs/show_bug.cgi?id=16168">16168</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>128-bit ABI on Windows incorrectly generated
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vtjnash@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10590" name="attach_10590" title="128-bit calling convention test code">attachment 10590</a> <a href="attachment.cgi?id=10590&action=edit" title="128-bit calling convention test code">[details]</a></span>
128-bit calling convention test code
The calling convention of calls generated for Windows x86-64 appears to be
incorrectly using an approximation of the Linux ABI instead of the Windows ABI
for 128-bit numbers.
What I expect to see is that the the number is passed on the stack with a
pointer passed in the corresponding register
(<a href="http://msdn.microsoft.com/en-us/library/zthk2dkh.aspx">http://msdn.microsoft.com/en-us/library/zthk2dkh.aspx</a>). What I see is that the
number is passed using two registers.
X86CallingConv.td appears to have the correct statement under CC_X86_Win64_C
that "// 128 bit vectors are passed by pointer", so I couldn't follow where in
the code the incorrect transform is being applied.
I have attached some sample code that trivially exercises the 128-bit calling
convention.</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>