<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 - Incorrect codegen for x32 ?"
href="https://bugs.llvm.org/show_bug.cgi?id=36011">36011</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect codegen for x32 ?
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cs12b1010@iith.ac.in
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19708" name="attach_19708" title="test case">attachment 19708</a> <a href="attachment.cgi?id=19708&action=edit" title="test case">[details]</a></span>
test case
Even though RBX is a callee-save register, it is not being saved before use in
the "base()" function in the attached test case. I have checked with LLVM 3.8
too and the same behavior exists even then. It is reproducible on trunk Jan
18/2018.
Steps to reproduce bug:
llc -mtriple=x86_64-pc-linux-gnux32 -stackrealign -stack-alignment=32 final.ll
clang final.s
./a.out
echo $?
Expected return value: 30
Actual return value: garbage.
The test case is an extended version of x86-64-baseptr.ll</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>