<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 --- - PowerPC code generation problem."
href="http://llvm.org/bugs/show_bug.cgi?id=21928">21928</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>PowerPC code generation problem.
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rich@pennware.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>Created <span class=""><a href="attachment.cgi?id=13549" name="attach_13549" title="Failing compilation files.">attachment 13549</a> <a href="attachment.cgi?id=13549&action=edit" title="Failing compilation files.">[details]</a></span>
Failing compilation files.
Somewhere after r223372 I started having problems cross building clang for the
PowerPC. I get the following (with r224322):
[~] dev% sh LoopStrengthReduce-f1225a.sh
Do not know how to custom type legalize this operation!
UNREACHABLE executed at
/home/rich/llvm/lib/Target/PowerPC/PPCISelLowering.cpp:6500!
0 clang 0x00000000028070b2 llvm::sys::PrintStackTrace(_IO_FILE*) +
34
1 clang 0x00000000028052f1
2 libpthread.so.0 0x0000003a6320f6d0
3 libc.so.6 0x0000003a62a35877 gsignal + 55
4 libc.so.6 0x0000003a62a36f68 abort + 328
5 clang 0x00000000027ed5ac
6 clang 0x0000000001c94c90
llvm::PPCTargetLowering::ReplaceNodeResults(llvm::SDNode*,
llvm::SmallVectorImpl<llvm::SDValue>&, llvm::SelectionDAG&) const + 512
7 clang 0x0000000001f82b78
8 clang 0x0000000001fe35ec
9 clang 0x0000000001f80047
10 clang 0x0000000001f80aee llvm::SelectionDAG::LegalizeTypes() + 494
11 clang 0x0000000001f55c95
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 517
12 clang 0x0000000001f590db
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1403
13 clang 0x0000000001f5a97b
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 763
14 clang 0x0000000001c8623a
15 clang 0x000000000278ea1f
llvm::FPPassManager::runOnFunction(llvm::Function&) + 655
16 clang 0x000000000278ee8b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
17 clang 0x000000000278f1cd
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 797
18 clang 0x000000000091a73e
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
3310
19 clang 0x000000000090c5dc
20 clang 0x0000000000ad86a3 clang::ParseAST(clang::Sema&, bool, bool)
+ 483
21 clang 0x000000000090d2eb clang::CodeGenAction::ExecuteAction() +
59
22 clang 0x000000000075aae6 clang::FrontendAction::Execute() + 118
23 clang 0x0000000000737689
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 345
24 clang 0x000000000071e07e
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2014
25 clang 0x0000000000714da8 cc1_main(llvm::ArrayRef<char const*>,
char const*, void*) + 2232
26 clang 0x00000000006f0a1e main + 4366
27 libc.so.6 0x0000003a62a21d65 __libc_start_main + 245
28 clang 0x000000000071373d
Stack dump:
0. Program arguments: /home/rich/llvm-dir/bin/clang -cc1 -triple
powerpc-ellcc-linux -S -disable-free -main-file-name LoopStrengthReduce.cpp
-mrelocation-model static -mthread-model posix -fmath-errno -no-integrated-as
-mconstructor-aliases -target-cpu ppc -target-linker-version 2.23.2
-dwarf-column-info -ffunction-sections -fdata-sections -D _DEBUG -D _GNU_SOURCE
-D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D __STDC_LIMIT_MACROS -D
ELLCC_ARG0="ppc-linux-eng" -O3 -Wcast-qual -Wno-long-long -Wall -W
-Wno-unused-parameter -Wwrite-strings -Wcovered-switch-default
-Wno-uninitialized -Wno-missing-field-initializers -Wno-comment -pedantic
-std=c++11 -fdeprecated-macro -fno-dwarf-directory-asm -ferror-limit 19
-fmessage-length 81 -mstackrealign -fno-rtti -fno-signed-char
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -x c++ LoopStrengthReduce-f1225a.cpp
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module
'LoopStrengthReduce-f1225a.cpp'.
4. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@_ZN12_GLOBAL__N_111LSRInstance24GenerateAllReuseFormulaeEv'
LoopStrengthReduce-f1225a.sh: line 1: 1135 Aborted (core
dumped) "/home/rich/llvm-dir/bin/clang" "-cc1" "-triple" "powerpc-ellcc-linux"
"-S" "-disable-free" "-main-file-name" "LoopStrengthReduce.cpp"
"-mrelocation-model" "static" "-mthread-model" "posix" "-fmath-errno"
"-no-integrated-as" "-mconstructor-aliases" "-target-cpu" "ppc"
"-target-linker-version" "2.23.2" "-dwarf-column-info" "-ffunction-sections"
"-fdata-sections" "-D" "_DEBUG" "-D" "_GNU_SOURCE" "-D"
"__STDC_CONSTANT_MACROS" "-D" "__STDC_FORMAT_MACROS" "-D" "__STDC_LIMIT_MACROS"
"-D" "ELLCC_ARG0=\"ppc-linux-eng\"" "-O3" "-Wcast-qual" "-Wno-long-long"
"-Wall" "-W" "-Wno-unused-parameter" "-Wwrite-strings"
"-Wcovered-switch-default" "-Wno-uninitialized"
"-Wno-missing-field-initializers" "-Wno-comment" "-pedantic" "-std=c++11"
"-fdeprecated-macro" "-fno-dwarf-directory-asm" "-ferror-limit" "19"
"-fmessage-length" "81" "-mstackrealign" "-fno-rtti" "-fno-signed-char"
"-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics"
"-vectorize-loops" "-vectorize-slp" "-x" "c++" "LoopStrengthReduce-f1225a.cpp"
[~] dev</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>