[LLVMbugs] [Bug 16178] New: ARM/ARMFastISel.cpp: Assertion `Arg != 0 && "Failed to emit a sext"' failed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu May 30 03:33:08 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16178
Bug ID: 16178
Summary: ARM/ARMFastISel.cpp: Assertion `Arg != 0 && "Failed to
emit a sext"' failed
Product: new-bugs
Version: trunk
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
Classification: Unclassified
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'
--
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/20130530/29bb6cd0/attachment.html>
More information about the llvm-bugs
mailing list