<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - Illegal aligned store for odd-sized byval argument"
href="https://bugs.llvm.org/show_bug.cgi?id=42361">42361</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Illegal aligned store for odd-sized byval argument
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Common Code Generator Code
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nikita.ppv@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>%struct = type { [31 x i8] }
declare void @foo(%struct* align 16 byval) nounwind
define void @test1(%struct* nocapture %x) nounwind {
call void @foo(%struct* align 16 byval %x)
ret void
}
Using -mcpu=haswell gives:
subq $40, %rsp
vmovups 15(%rdi), %xmm0
vmovaps %xmm0, 15(%rsp)
vmovaps (%rdi), %xmm0
vmovaps %xmm0, (%rsp)
callq foo
addq $40, %rsp
retq
The first vmovaps should be a vmovups.
The problem is that alignment is not correctly computed for MachinePointerInfo
with unknown base value. I have an old patch for this lying around at
<a href="https://reviews.llvm.org/D54419">https://reviews.llvm.org/D54419</a>.</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>