[LLVMbugs] [Bug 15791] New: Assertion failed: V, Mask, KnownOne and KnownZero should have same BitWidth
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Apr 19 04:06:39 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15791
Bug ID: 15791
Summary: Assertion failed: V, Mask, KnownOne and KnownZero
should have same BitWidth
Product: new-bugs
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: schnetter at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I received the following error message from clang:
Command:
{{{
clang++-mp-3.3 -Wall -g -std=c++11 -stdlib=libc++ -march=native -O3 -o
CMakeFiles/test.dir/test.cc.o -c /Users/eschnett/src/cc/vecmathlib/test.cc
}}}
This is the current version in MacPorts.
Error:
{{{
Assertion failed: ((!TD || TD->getTypeSizeInBits(V->getType()->getScalarType())
== BitWidth) && (!V->getType()->isIntOrIntVectorTy() ||
V->getType()->getScalarSizeInBits() == BitWidth) && KnownZero.getBitWidth() ==
BitWidth && KnownOne.getBitWidth() == BitWidth && "V, Mask, KnownOne and
KnownZero should have same BitWidth"), function ComputeMaskedBits, file
ValueTracking.cpp, line 243.
0 libLLVM-3.3svn.dylib 0x000000010bd884b5 llvm::sys::PrintStackTrace(__sFILE*)
+ 37
1 libLLVM-3.3svn.dylib 0x000000010bd88b29 SignalHandler(int) + 713
2 libsystem_c.dylib 0x00007fff90a8594a _sigtramp + 26
3 libsystem_c.dylib 0x0000000100000020 _sigtramp + 1868015344
4 libLLVM-3.3svn.dylib 0x000000010bd887b6 abort + 22
5 libLLVM-3.3svn.dylib 0x000000010bd88775 __assert_rtn + 53
6 libLLVM-3.3svn.dylib 0x000000010b5874ad
llvm::ComputeMaskedBits(llvm::Value*, llvm::APInt&, llvm::APInt&,
llvm::DataLayout const*, unsigned int) + 17485
7 libLLVM-3.3svn.dylib 0x000000010b4a75c3
llvm::ConstantFoldInstOperands(unsigned int, llvm::Type*,
llvm::ArrayRef<llvm::Constant*>, llvm::DataLayout const*,
llvm::TargetLibraryInfo const*) + 339
8 libLLVM-3.3svn.dylib 0x000000010b4d7402 SimplifyAndInst(llvm::Value*,
llvm::Value*, Query const&, unsigned int) + 786
9 libLLVM-3.3svn.dylib 0x000000010b4db58d SimplifyBinOp(unsigned int,
llvm::Value*, llvm::Value*, Query const&, unsigned int) + 429
10 libLLVM-3.3svn.dylib 0x000000010b4db3d3 llvm::SimplifyBinOp(unsigned int,
llvm::Value*, llvm::Value*, llvm::DataLayout const*, llvm::TargetLibraryInfo
const*, llvm::DominatorTree const*) + 35
11 libLLVM-3.3svn.dylib 0x000000010bf458e6 (anonymous
namespace)::CallAnalyzer::visitBinaryOperator(llvm::BinaryOperator&) + 294
12 libLLVM-3.3svn.dylib 0x000000010bf42925 llvm::InstVisitor<(anonymous
namespace)::CallAnalyzer, bool>::visit(llvm::Instruction&) + 1733
13 libLLVM-3.3svn.dylib 0x000000010bf41eed (anonymous
namespace)::CallAnalyzer::analyzeCall(llvm::CallSite) + 4189
14 libLLVM-3.3svn.dylib 0x000000010bf406fd
llvm::InlineCostAnalysis::getInlineCost(llvm::CallSite, llvm::Function*, int) +
701
15 libLLVM-3.3svn.dylib 0x000000010bf403f5
llvm::InlineCostAnalysis::getInlineCost(llvm::CallSite, int) + 69
16 libLLVM-3.3svn.dylib 0x000000010bf6d501
llvm::Inliner::shouldInline(llvm::CallSite) + 33
17 libLLVM-3.3svn.dylib 0x000000010bf6e7e7
llvm::Inliner::runOnSCC(llvm::CallGraphSCC&) + 2743
18 libLLVM-3.3svn.dylib 0x000000010bf6d252 (anonymous
namespace)::SimpleInliner::runOnSCC(llvm::CallGraphSCC&) + 50
19 libLLVM-3.3svn.dylib 0x000000010bf3707c (anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 1692
20 libLLVM-3.3svn.dylib 0x000000010b838d88
llvm::MPPassManager::runOnModule(llvm::Module&) + 376
21 libLLVM-3.3svn.dylib 0x000000010b839316
llvm::PassManagerImpl::run(llvm::Module&) + 182
22 libLLVM-3.3svn.dylib 0x000000010b83950d
llvm::PassManager::run(llvm::Module&) + 13
23 clang 0x000000010a099668
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 5352
24 clang 0x000000010a17deec
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 620
25 clang 0x000000010a1b9496 clang::ParseAST(clang::Sema&, bool,
bool) + 518
26 clang 0x000000010a17d1d5
clang::CodeGenAction::ExecuteAction() + 1205
27 clang 0x0000000109f7154c clang::FrontendAction::Execute() +
124
28 clang 0x0000000109f5039f
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1007
29 clang 0x0000000109f22f14
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3652
30 clang 0x0000000109f1a4e5 cc1_main(char const**, char const**,
char const*, void*) + 837
31 clang 0x0000000109f1ed54 main + 708
32 libdyld.dylib 0x00007fff98a237e1 start + 0
Stack dump:
0. Program arguments: /opt/local/libexec/llvm-3.3/bin/clang -cc1 -triple
x86_64-apple-macosx10.8.0 -emit-obj -disable-free -main-file-name test.cc
-mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose
-munwind-tables -target-cpu core-avx-i -target-linker-version 134.9 -g
-coverage-file /Users/eschnett/src/cc/vecmathlib/CMakeFiles/test.dir/test.cc.o
-resource-dir /opt/local/libexec/llvm-3.3/bin/../lib/clang/3.3 -stdlib=libc++
-O3 -Wall -std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/Users/eschnett/src/cc/vecmathlib -ferror-limit 19 -fmessage-length 80
-stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.8.0
-fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
-fencode-extended-block-signature -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -backend-option -vectorize-loops
-o CMakeFiles/test.dir/test.cc.o -x c++
/Users/eschnett/src/cc/vecmathlib/test.cc
1. <eof> parser at end of file
2. Per-module optimization passes
3. Running pass 'CallGraph Pass Manager' on module
'/Users/eschnett/src/cc/vecmathlib/test.cc'.
clang: error: unable to execute command: Illegal instruction: 4
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 179575)
Target: x86_64-apple-darwin12.3.0
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.
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/test-ufUll1.cpp
clang: note: diagnostic msg:
/var/folders/gl/zvl8d6415vsbkd50nnll95k40000gs/T/test-ufUll1.sh
clang: note: diagnostic msg:
********************
}}}
--
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/20130419/11512226/attachment.html>
More information about the llvm-bugs
mailing list