[LLVMbugs] [Bug 16234] New: UNREACHABLE executed at llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:613
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 5 07:24:39 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16234
Bug ID: 16234
Summary: UNREACHABLE executed at
llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:613
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: kcc at google.com
CC: llvmbugs at cs.uiuc.edu, wschmidt at linux.vnet.ibm.com
Classification: Unclassified
test case reduced from clang bootstrap failure on PowerPC linux, r183312.
namespace a {
typedef int uptr;
typedef long long u64;
void __attribute__ ( (noreturn) ) Die ();
int AppendUnsigned (int **, u64 num) {
uptr num_buffer[0];
uptr pos = num;
do {
if (!pos)
Die ();
num_buffer[pos++] = 0;
num /= 2;
} while (num);
return 0;
}
}
% clang -cc1 -triple powerpc-unknown-linux-gnu -S -target-cpu ppc -O3 -x c++
powerbug.cc
Invalid PPC CTR loop!
UNREACHABLE executed at /home/kcc/llvm/lib/Target/PowerPC/PPCCTRLoops.cpp:613!
0 clang 0x00000000012abe95 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1 clang 0x00000000012ac383
2 libpthread.so.0 0x00007f89126fbcb0
3 libc.so.6 0x00007f891193a425 gsignal + 53
4 libc.so.6 0x00007f891193db8b abort + 379
5 clang 0x000000000127d608 llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 440
6 clang 0x0000000000890ea5
7 clang 0x0000000000d72aad
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 125
8 clang 0x00000000011d264c
llvm::FPPassManager::runOnFunction(llvm::Function&) + 364
9 clang 0x00000000011d28bb
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
10 clang 0x00000000011d2c0e
llvm::MPPassManager::runOnModule(llvm::Module&) + 430
11 clang 0x00000000011d32ab llvm::PassManagerImpl::run(llvm::Module&)
+ 539
12 clang 0x00000000011d341a llvm::PassManager::run(llvm::Module&) +
10
13 clang 0x00000000012c9677
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5943
14 clang 0x00000000012c6cbb
15 clang 0x000000000155f9f3 clang::ParseAST(clang::Sema&, bool, bool)
+ 515
16 clang 0x00000000012c5fd2 clang::CodeGenAction::ExecuteAction() +
194
17 clang 0x00000000014ae7b1 clang::FrontendAction::Execute() + 113
18 clang 0x000000000148ea7d
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909
19 clang 0x00000000012aec54
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3028
20 clang 0x000000000066c87e cc1_main(char const**, char const**, char
const*, void*) + 718
21 clang 0x000000000066a23b main + 7083
22 libc.so.6 0x00007f891192576d __libc_start_main + 237
23 clang 0x0000000000668565
Stack dump:
0. Program arguments: clang -cc1 -triple powerpc-unknown-linux-gnu -S
-target-cpu ppc -O3 -x c++ powerbug.cc
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'powerbug.cc'.
4. Running pass 'PowerPC CTR Loops Verify' on function
'@_ZN1a14AppendUnsignedEPPix'
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130605/cd330188/attachment.html>
More information about the llvm-bugs
mailing list