<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 - aarch64 .cfi_* using regno 33 gets: lib/MC/MCRegisterInfo.cpp:87: int llvm::MCRegisterInfo::getLLVMRegNum(unsigned int, bool) const: Assertion `I != M+Size && I->FromReg == RegNum && "Invalid RegNum"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=34028">34028</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>aarch64 .cfi_* using regno 33 gets: lib/MC/MCRegisterInfo.cpp:87: int llvm::MCRegisterInfo::getLLVMRegNum(unsigned int, bool) const: Assertion `I != M+Size && I->FromReg == RegNum && "Invalid RegNum"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>roland@hack.frob.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, phosek@chromium.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18891" name="attach_18891" title="test case, preprocessed assembly source">attachment 18891</a> <a href="attachment.cgi?id=18891&action=edit" title="test case, preprocessed assembly source">[details]</a></span>
test case, preprocessed assembly source
clang -cc1as -triple aarch64-fuchsia -filetype obj -main-file-name
exceptions.S -target-cpu cortex-a53 -target-feature +crc -target-feature
-fp-armv8 -target-feature -crypto -target-feature -neon -target-feature
+reserve-x18 -debug-info-kind=limited -dwarf-version=4 -mrelocation-model
static exceptions.s
yields:
lib/MC/MCRegisterInfo.cpp:87: int llvm::MCRegisterInfo::getLLVMRegNum(unsigned
int, bool) const: Assertion `I != M+Size && I->FromReg == RegNum && "Invalid
RegNum"' failed.
It's triggered by using DWARF register number 33 in .cfi_* directives. I
couldn't get a simple test case using the same directives with 33 to exhibit
the crash.
33 is a valid DWARF register number for aarch64, cf
<a href="http://infocenter.arm.com/help/topic/com.arm.doc.ihi0057b/IHI0057B_aadwarf64.pdf">http://infocenter.arm.com/help/topic/com.arm.doc.ihi0057b/IHI0057B_aadwarf64.pdf</a>
section 3.1; but it's not a normal register the assembler understands by name,
and the compiler would never generate CFI referring to it.
In hand-written assembly for kernel code, it's entirely valid.</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>