[LLVMbugs] [Bug 14749] New: UNREACHABLE executed: Cannot emit physreg copy instruction !
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Dec 29 14:57:07 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14749
Bug #: 14749
Summary: UNREACHABLE executed: Cannot emit physreg copy
instruction !
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: antoine.balestrat at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Hello ! The following testcase fails to compile with LLVM/Clang 3.3 as of
171199.
$ cat postra.c
int a, b;
void f(void)
{
unsigned short *p = 1;
for(*p = 0; *p < 16; ++*p)
a *= b != *p - b;
}
$ clong -O2 -w postra.c
Cannot emit physreg copy instruction
UNREACHABLE executed at
/home/merkil/git/clang/llvm/lib/Target/X86/X86InstrInfo.cpp:2926!
0 clang 0x0000000001ad0eff
1 clang 0x0000000001ad13e3
2 libpthread.so.0 0x00007ffbd2a42910
3 libc.so.6 0x00007ffbd1cabff5 gsignal + 53
4 libc.so.6 0x00007ffbd1cad307 abort + 327
5 clang 0x0000000001abf03f llvm::llvm_unreachable_internal(char
const*, char const*, unsigned int) + 463
6 clang 0x000000000137f93a
7 clang 0x000000000166852e
8 clang 0x00000000015a7764
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 116
9 clang 0x0000000001a733ac
llvm::FPPassManager::runOnFunction(llvm::Function&) + 444
10 clang 0x0000000001a735ab
llvm::FPPassManager::runOnModule(llvm::Module&) + 59
11 clang 0x0000000001a7391e
llvm::MPPassManager::runOnModule(llvm::Module&) + 494
12 clang 0x0000000001a73f28 llvm::PassManagerImpl::run(llvm::Module&)
+ 456
13 clang 0x0000000001a740ca llvm::PassManager::run(llvm::Module&) +
10
14 clang 0x00000000007aec37
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 6007
15 clang 0x00000000007ac70a
16 clang 0x00000000008e2185 clang::ParseAST(clang::Sema&, bool, bool)
+ 549
17 clang 0x00000000007ab75c clang::CodeGenAction::ExecuteAction() +
204
18 clang 0x000000000064938a clang::FrontendAction::Execute() + 106
19 clang 0x000000000062a6ad
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 989
20 clang 0x00000000006107f0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3936
21 clang 0x00000000006073f6 cc1_main(char const**, char const**, char
const*, void*) + 694
22 clang 0x000000000060c836 main + 3542
23 libc.so.6 0x00007ffbd1c98985 __libc_start_main + 245
24 clang 0x000000000060707d
Stack dump:
0. Program arguments: /home/merkil/git/clang/build/Release+Asserts/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
postra.c -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.23.1 -momit-leaf-frame-pointer -resource-dir
/home/merkil/git/clang/build/Release+Asserts/bin/../lib/clang/3.3
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/local/include -internal-isystem
/home/merkil/git/clang/build/Release+Asserts/bin/../lib/clang/3.3/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-w -fdebug-compilation-dir /home/merkil -ferror-limit 19 -fmessage-length 0
-mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -backend-option
-vectorize-loops -o /tmp/postra-ERytGB.o -x c postra.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'postra.c'.
4. Running pass 'Post-RA pseudo instruction expansion pass' on function '@f'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 171199)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list