<html>
<head>
<base href="https://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 --- - arm: Assertion failed: (!VRM->hasPhys(SplitVirtReg->reg) && "Register already assigned"), function allocatePhysRegs"
href="https://llvm.org/bugs/show_bug.cgi?id=24931">24931</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>arm: Assertion failed: (!VRM->hasPhys(SplitVirtReg->reg) && "Register already assigned"), function allocatePhysRegs
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dimitry@andric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I received a crasher for compiling concurrencykit on arm-freebsd. It results
in an assertion failure with clang trunk r248374. I could reduce this to the
following:
x0, x1, x2;
static x3;
long long x4;
x5() {
long long x6 = x0, x7 = 0;
int x8;
__asm__("" : "=&r"(x8), "=&r"(x4) : "r"(x7), "r"(x6), "r"(1) : "5", "6");
}
x9() {
for (;;) {
x5(&x3);
while (x10(x3, x1, x2))
;
}
}
Compiled with: clang -cc1 -triple arm-linux -emit-obj -mdisable-fp-elim
-target-cpu arm1176jzf-s -O2 testcase.c
results in:
Assertion failed: (!VRM->hasPhys(SplitVirtReg->reg) && "Register already
assigned"), function allocatePhysRegs, file lib/CodeGen/RegAllocBase.cpp, line
141.
Abort trap
Stack trace:
#0 0x2b2aaf3b in thr_kill () from /lib/libc.so.7
#1 0x2b2aaf2c in raise () from /lib/libc.so.7
#2 0x2b2aae73 in abort () from /lib/libc.so.7
#3 0x2b3132d8 in __assert () from /lib/libc.so.7
#4 0x08d8cf81 in llvm::RegAllocBase::allocatePhysRegs() ()
#5 0x08c479db in (anonymous
namespace)::RAGreedy::runOnMachineFunction(llvm::MachineFunction&) ()
#6 0x08bd71ff in llvm::MachineFunctionPass::runOnFunction(llvm::Function&) ()
#7 0x08eca5eb in llvm::FPPassManager::runOnFunction(llvm::Function&) ()
#8 0x08eca8a2 in llvm::FPPassManager::runOnModule(llvm::Module&) ()
#9 0x08ecae27 in llvm::legacy::PassManagerImpl::run(llvm::Module&) ()
#10 0x08ecb6b8 in llvm::legacy::PassManager::run(llvm::Module&) ()
#11 0x0937a12e in clang::EmitBackendOutput(clang::DiagnosticsEngine&,
clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions
const&, llvm::StringRef, llvm::Module*, clang::BackendAction,
llvm::raw_pwrite_stream*) ()
#12 0x09a3bac7 in
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) ()
#13 0x09d9ace5 in clang::ParseAST(clang::Sema&, bool, bool) ()
#14 0x096e8f06 in clang::ASTFrontendAction::ExecuteAction() ()
#15 0x09a3a66e in clang::CodeGenAction::ExecuteAction() ()
#16 0x096e87a3 in clang::FrontendAction::Execute() ()
#17 0x096b4d98 in
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) ()
#18 0x0976495a in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) ()
#19 0x082e5100 in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) ()
#20 0x082e3ce8 in main ()</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>