<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 --- - ARM/ARMFastISel.cpp: Assertion `Arg != 0 && "Failed to emit a sext"' failed"
href="http://llvm.org/bugs/show_bug.cgi?id=16178">16178</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ARM/ARMFastISel.cpp: Assertion `Arg != 0 && "Failed to emit a sext"' failed
</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>kcc@google.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>LLVM r182920
test case by csmith/creduce.
The minimized test case is a bit weird, but the compiler should not crash
anyway
void fn1 (char p1) {
fn1 (p1 >> 56);
}
% clang -cc1 -triple armv4t--linux-eabi-android -S -x c k.c
k.c:2:11: warning: shift count >= width of type
fn1 (p1 >> 56);
^ ~~
clang: llvm/lib/Target/ARM/ARMFastISel.cpp:1984: bool <anonymous
namespace>::ARMFastISel::ProcessCallArgs(SmallVectorImpl<llvm::Value *> &,
SmallVectorImpl<unsigned int> &, SmallVectorImpl<llvm::MVT> &,
SmallVectorImpl<ISD::ArgFlagsTy> &, SmallVectorImpl<unsigned int> &,
CallingConv::ID, unsigned int &, bool): Assertion `Arg != 0 && "Failed to emit
a sext"' failed.
10 clang 0x0000000000ba7a68
llvm::FastISel::SelectInstruction(llvm::Instruction const*) + 488
11 clang 0x0000000000c1b018
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 872
12 clang 0x0000000000c19ff6
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 1302
13 clang 0x0000000000d6103d
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 125
14 clang 0x00000000011c9aec
llvm::FPPassManager::runOnFunction(llvm::Function&) + 364
15 clang 0x00000000011c9d5b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
16 clang 0x00000000011ca0ae
llvm::MPPassManager::runOnModule(llvm::Module&) + 430
17 clang 0x00000000011ca74b llvm::PassManagerImpl::run(llvm::Module&)
+ 539
18 clang 0x00000000011ca8ba llvm::PassManager::run(llvm::Module&) +
10
19 clang 0x00000000012c0537
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5943
20 clang 0x00000000012bdbab
21 clang 0x0000000001554e53 clang::ParseAST(clang::Sema&, bool, bool)
+ 515
22 clang 0x00000000012bcec2 clang::CodeGenAction::ExecuteAction() +
194
23 clang 0x00000000014a3d11 clang::FrontendAction::Execute() + 113
24 clang 0x0000000001483fdd
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 909
25 clang 0x00000000012a5b44
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3028
26 clang 0x000000000066b85e cc1_main(char const**, char const**, char
const*, void*) + 718
27 clang 0x000000000066921b main + 7083
28 libc.so.6 0x00007fa60bc8376d __libc_start_main + 237
29 clang 0x0000000000667545
Stack dump:
0. Program arguments: clang -cc1 -triple armv4t--linux-eabi-android -S -x c
k.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'k.c'.
4. Running pass 'ARM Instruction Selection' on function '@fn1'</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>