<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 - [7, trunk, regression][x86 backend] .cfi_offset doesn't allow %eip in 32bit mode"
href="https://bugs.llvm.org/show_bug.cgi?id=38826">38826</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[7, trunk, regression][x86 backend] .cfi_offset doesn't allow %eip in 32bit mode
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>7.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>iains-llvm@btconnect.com
</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=20839" name="attach_20839" title="possible patch">attachment 20839</a> <a href="attachment.cgi?id=20839&action=edit" title="possible patch">[details]</a></span>
possible patch
For 7.0.0rc2 and trunk, the following code:
.text
.align 4
.globl foo
foo:
.cfi_startproc
movl (%edx), %ecx
movl 4(%edx), %ebx
movl 8(%edx), %esi
movl 12(%edx), %edi
movl 16(%edx), %ebp
.cfi_def_cfa %edx, 0
.cfi_offset %eip, 24
.cfi_register %esp, %ecx
movl %ecx, %esp
jmp *24(%edx)
.cfi_endproc
===
produces
$ ..../bin/llvm-mc -triple i386-unknown-unkown -filetype obj foo.s -o t.o
....:259:18: error: register %eip is only available in 64-bit mode
.cfi_offset %eip, 24
====
this seems to be down to : r336217
"[X86][AsmParser] Don't consider %eip as a valid register outside of 32-bit
mode."
... except that we are in 32b mode ...
The issue is that we want to exclude eip from use in base+index modes, but not
from all uses?</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>