[LLVMbugs] [Bug 22754] New: nsigned int llvm::EVT::getVectorNumElements() const: Assertion `isVector() && "Invalid vector type!"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 2 08:29:35 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22754

            Bug ID: 22754
           Summary: nsigned int llvm::EVT::getVectorNumElements() const:
                    Assertion `isVector() && "Invalid vector type!"'
                    failed.
           Product: clang
           Version: trunk
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: octoploid at yandex.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

on ppc64le I get:

trippels at gcc2-power8 ~ % cat gfxFontUtils.ii
extern "C" void *memset(void *, int, unsigned long);
class {
  enum { BLOCK_SIZE = 32 };
  struct B {
    int Block_memsetValue;
    B() { memset(0, Block_memsetValue, BLOCK_SIZE); }
  };

public:
  void m_fn1() { new B; }
} a;
void gfxFontUtilsReadCMAPTableFormat12() { a.m_fn1(); }

trippels at gcc2-power8 ~ % clang++ -fno-crash-diagnostics -ferror-limit=1 -c
-std=c++11 gfxFontUtils.ii -S -o /dev/null
clang-3.7: /home/trippels/llvm/include/llvm/CodeGen/ValueTypes.h:226: unsigned
int llvm::EVT::getVectorNumElements() const: Assertion `isVector() && "Invalid
vector type!"' failed.
#0 0x10f2fc8c llvm::sys::PrintStackTrace(_IO_FILE*)
(/home/trippels/llvm-install/bin/clang-3.7+0x10f2fc8c)
#1 0x10f2ff14 PrintStackTraceSignalHandler(void*)
(/home/trippels/llvm-install/bin/clang-3.7+0x10f2ff14)
#2 0x10f2d984 SignalHandler(int)
(/home/trippels/llvm-install/bin/clang-3.7+0x10f2d984)
0  clang-3.7 0x0000000010f2fc8c llvm::sys::PrintStackTrace(_IO_FILE*) + 92
1  clang-3.7 0x0000000010f2ff14
2  clang-3.7 0x0000000010f2d984
3            0x00003fffae7e0478 __kernel_sigtramp_rt64 + 0
4  libc.so.6 0x00003fffae1bd978 gsignal + 72
5  libc.so.6 0x00003fffae1bff7c abort + 684
6  libc.so.6 0x00003fffae1b3544
7  libc.so.6 0x00003fffae1b3634 __assert_fail + 100
8  clang-3.7 0x000000001026f364
9  clang-3.7 0x000000001060a25c
10 clang-3.7 0x000000001128618c llvm::SelectionDAG::getNode(unsigned int,
llvm::SDLoc, llvm::EVT, llvm::SDValue) + 6476
11 clang-3.7 0x0000000011291394
12 clang-3.7 0x0000000011291e30 llvm::SelectionDAG::getMemset(llvm::SDValue,
llvm::SDLoc, llvm::SDValue, llvm::SDValue, llvm::SDValue, unsigned int, bool,
llvm::MachinePointerInfo) + 1728
13 clang-3.7 0x00000000112cb590
llvm::SelectionDAGBuilder::visitIntrinsicCall(llvm::CallInst const&, unsigned
int) + 2560
14 clang-3.7 0x00000000112d39f0
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 1888
15 clang-3.7 0x00000000112aeca8 llvm::SelectionDAGBuilder::visit(unsigned int,
llvm::User const&) + 520
16 clang-3.7 0x00000000112d4250
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 96
17 clang-3.7 0x00000000112e5478
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 88
18 clang-3.7 0x00000000112e9238
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 4552
19 clang-3.7 0x00000000112eb7b4
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 2180
20 clang-3.7 0x0000000010602e28
21 clang-3.7 0x000000001086b958
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 280
22 clang-3.7 0x0000000010ba9c68
llvm::FPPassManager::runOnFunction(llvm::Function&) + 728
23 clang-3.7 0x0000000010baa2cc llvm::FPPassManager::runOnModule(llvm::Module&)
+ 76
24 clang-3.7 0x0000000010ba9650
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 1040
25 clang-3.7 0x0000000010ba996c llvm::legacy::PassManager::run(llvm::Module&) +
28
26 clang-3.7 0x00000000113bbc64
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&,
llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::raw_ostream*) +
2564
27 clang-3.7 0x00000000113a63f0
28 clang-3.7 0x00000000118bdb98 clang::ParseAST(clang::Sema&, bool, bool) +
1096
29 clang-3.7 0x00000000110ea1dc clang::ASTFrontendAction::ExecuteAction() + 124
30 clang-3.7 0x00000000113a7d0c clang::CodeGenAction::ExecuteAction() + 60
31 clang-3.7 0x00000000110eb508 clang::FrontendAction::Execute() + 248
32 clang-3.7 0x00000000110c50a8
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 440
33 clang-3.7 0x00000000111776c4
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2244
34 clang-3.7 0x00000000105b53c8 cc1_main(llvm::ArrayRef<char const*>, char
const*, void*) + 1224
35 clang-3.7 0x0000000010591ea0 main + 928
36 libc.so.6 0x00003fffae1a2920
37 libc.so.6 0x00003fffae1a2b34 __libc_start_main + 196
Stack dump:
0.      Program arguments: /home/trippels/llvm-install/bin/clang-3.7 -cc1
-triple powerpc64le-unknown-linux-gnu -S -disable-free -main-file-name
gfxFontUtils.ii -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu ppc64le -target-abi elfv2 -dwarf-column-info
-coverage-file /dev/null -resource-dir
/home/trippels/llvm-install/bin/../lib/clang/3.7.0 -std=c++11
-fdeprecated-macro -fdebug-compilation-dir /home/trippels -ferror-limit 1
-fmessage-length 174 -mstackrealign -fno-signed-char -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
/dev/null -x c++-cpp-output gfxFontUtils.ii 
1.      <eof> parser at end of file
2.      Code generation
3.      Running pass 'Function Pass Manager' on module 'gfxFontUtils.ii'.
4.      Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on
function '@"_ZN3$_01BC2Ev"'
clang-3.7: error: unable to execute command: Aborted (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)

-- 
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/20150302/aa0f90fc/attachment.html>


More information about the llvm-bugs mailing list