<html>
<head>
<base href="http://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 --- - Assertion `RegNo < NumRegs && "Attempting to access record for invalid register number!"' failed."
href="http://llvm.org/bugs/show_bug.cgi?id=17519">17519</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `RegNo < NumRegs && "Attempting to access record for invalid register number!"' failed.
</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>Linux
</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: PTX
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>maemarcus@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>As of r192159 NVPTX backend crashes on a reduced test case:
$ llc --version
LLVM (<a href="http://llvm.org/">http://llvm.org/</a>):
LLVM version 3.4svn
DEBUG build with assertions.
Built Oct 9 2013 (00:05:24).
Default target: x86_64-unknown-linux-gnu
Host CPU: core-avx-i
Registered Targets:
nvptx - NVIDIA PTX 32-bit
nvptx64 - NVIDIA PTX 64-bit
x86 - 32-bit X86: Pentium-Pro and above
x86-64 - 64-bit X86: EM64T and AMD64
$ opt bugpoint-reduced-simplified.bc -S -o -
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
target triple = "nvptx64-nvidia-cuda"
; Function Attrs: nounwind
define ptx_device void @kernelgen_memcpy() #0 {
entry:
br i1 undef, label %for.end, label %vector.body
vector.body: ; preds = %vector.body,
%entry
br label %vector.body
for.end: ; preds = %entry
ret void
}
attributes #0 = { nounwind "less-precise-fpmad"="false"
"no-frame-pointer-elim"="false" "no-infs-fp-math"="false"
"no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8"
"unsafe-fp-math"="false" "use-soft-float"="false" }
$ kernelgen-llc bugpoint-reduced-simplified.bc
kernelgen-llc:
/home/marcusmae/rpmbuild/BUILD/llvm/build/include/llvm/MC/MCRegisterInfo.h:316:
const llvm::MCRegisterDesc& llvm::MCRegisterInfo::operator[](unsigned int)
const: Assertion `RegNo < NumRegs && "Attempting to access record for invalid
register number!"' failed.
0 libLLVM-3.4svn.so 0x00007f9627ecc199 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 libLLVM-3.4svn.so 0x00007f9627ecc416
2 libLLVM-3.4svn.so 0x00007f9627ecbe75
3 libpthread.so.0 0x00007f96267c5cb0
4 libc.so.6 0x00007f9625afe425 gsignal + 53
5 libc.so.6 0x00007f9625b01b8b abort + 379
6 libc.so.6 0x00007f9625af70ee
7 libc.so.6 0x00007f9625af7192
8 libLLVM-3.4svn.so 0x00007f96274d5714
9 libLLVM-3.4svn.so 0x00007f96274d5752
10 libLLVM-3.4svn.so 0x00007f96274d577d
11 libLLVM-3.4svn.so 0x00007f96274ccf0f
12 libLLVM-3.4svn.so 0x00007f96274cdefc llvm::AsmPrinter::EmitFunctionBody() +
1110
13 libLLVM-3.4svn.so 0x00007f96274d4dff
14 libLLVM-3.4svn.so 0x00007f962765fbd9
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
15 libLLVM-3.4svn.so 0x00007f96278cd3fe
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
16 libLLVM-3.4svn.so 0x00007f96278cd56e
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
17 libLLVM-3.4svn.so 0x00007f96278cd8c2
llvm::MPPassManager::runOnModule(llvm::Module&) + 556
18 libLLVM-3.4svn.so 0x00007f96278cdeb8
llvm::PassManagerImpl::run(llvm::Module&) + 244
19 libLLVM-3.4svn.so 0x00007f96278ce0c3 llvm::PassManager::run(llvm::Module&) +
39
20 kernelgen-llc 0x000000000040ee98
21 kernelgen-llc 0x000000000040df77 main + 237
22 libc.so.6 0x00007f9625ae976d __libc_start_main + 237
23 kernelgen-llc 0x000000000040d899
Stack dump:
0. Program arguments: kernelgen-llc bugpoint-reduced-simplified.bc
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.bc'.
2. Running pass 'NVPTX Assembly Printer' on function '@kernelgen_memcpy'
Aborted (core dumped)</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>