[LLVMbugs] [Bug 4439] New: Cannot yet select error (llvm from subversion)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jun 24 05:36:06 PDT 2009


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

           Summary: Cannot yet select error (llvm from subversion)
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: compile-fail
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: veldema at cs.fau.de
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3120)
 --> (http://llvm.org/bugs/attachment.cgi?id=3120)
bitcode file

I have now idea what insn it can't 'match' here.
What I did (effectively) was:
      MemoryBuffer *Buffer = MemoryBuffer::getFile(out, &errMsg);
      Module *module = ParseBitcodeFile(Buffer, &errMsg);
      TheExecutionEngine = ExecutionEngine::createJIT(OurModuleProvider,
&errMsg);
      Function *LF = module->getFunction(name);
      void *FPtr = TheExecutionEngine->getPointerToFunction(LF);

using the attached file. 
Running llc over it works however. 
The JIT gives me:

Cannot yet select: 0x7fffd8439fc0: i64 = X86ISD::Wrapper 0x7fffd84336f0

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffeab1d910 (LWP 9023)]
0x00000039a56332f5 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
Current language:  auto; currently minimal
(gdb) where
#0  0x00000039a56332f5 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00000039a5634b20 in *__GI_abort () at abort.c:88
#2  0x0000000000f0f119 in (anonymous
namespace)::X86DAGToDAGISel::CannotYetSelect (this=0x7fffd814ee20, N=
      {Node = 0x7fffd8439fc0, ResNo = 0}) at X86GenDAGISel.inc:55853
#3  0x0000000000f0b707 in (anonymous
namespace)::X86DAGToDAGISel::Select_X86ISD_Wrapper_i64 (
    this=0x7fffd814ee20, N=@0x7fffeab137f8) at X86GenDAGISel.inc:54197
#4  0x0000000000f0eed5 in (anonymous namespace)::X86DAGToDAGISel::SelectCode
(this=0x7fffd814ee20, N=
      {Node = 0x7fffd8439fc0, ResNo = 0}) at X86GenDAGISel.inc:55831
#5  0x0000000000f159c9 in (anonymous namespace)::X86DAGToDAGISel::Select
(this=0x7fffd814ee20, N=
      {Node = 0x7fffd8439fc0, ResNo = 0}) at X86ISelDAGToDAG.cpp:1711
#6  0x0000000000daa548 in (anonymous
namespace)::X86DAGToDAGISel::SelectRoot(struct llvm::SelectionDAG &) (
    this=0x7fffd814ee20, DAG=@0x7fffd814fc50)
    at /home/veldema/Projects/llvm/include/llvm/CodeGen/DAGISelHeader.h:112
#7  0x0000000000f11010 in (anonymous
namespace)::X86DAGToDAGISel::InstructionSelect (this=0x7fffd814ee20)
    at X86ISelDAGToDAG.cpp:634
#8  0x00000000011ba3b6 in llvm::SelectionDAGISel::CodeGenAndEmitDAG
(this=0x7fffd814ee20)
    at SelectionDAGISel.cpp:682
#9  0x00000000011b908f in llvm::SelectionDAGISel::SelectBasicBlock
(this=0x7fffd814ee20, LLVMBB=0x7fffd87fb670, 
    Begin=
    {<bidirectional_iterator<llvm::Instruction, long>> =
{<std::iterator<std::bidirectional_iterator_tag, llvm::Instruction, long,
llvm::Instruction*, llvm::Instruction&>> = {<No data fields>}, <No data
fields>}, NodePtr = 0x7fffd8808af8}, End=
      {<bidirectional_iterator<llvm::Instruction, long>> =
{<std::iterator<std::bidirectional_iterator_tag, llvm::Instruction, long,
llvm::Instruction*, llvm::Instruction&>> = {<No data fields>}, <No data
fields>}, NodePtr = 0x7fffd87fb670}) at SelectionDAGISel.cpp:496
#10 0x00000000011bb1aa in llvm::SelectionDAGISel::SelectAllBasicBlocks
(this=0x7fffd814ee20, Fn=
    @0x7fffd87127a0, MF=@0x7fffd15b8080, MMI=0x7fffd8381850, DW=0x7fffd8154400,
TII=@0x7fffd80fa2b8)
    at SelectionDAGISel.cpp:886
#11 0x00000000011b82bf in llvm::SelectionDAGISel::runOnFunction
(this=0x7fffd814ee20, Fn=@0x7fffd87127a0)
    at SelectionDAGISel.cpp:326
#12 0x0000000001307c08 in llvm::FPPassManager::runOnFunction
(this=0x7fffd80feef0, F=@0x7fffd87127a0)
    at PassManager.cpp:1351
#13 0x0000000001307939 in llvm::FunctionPassManagerImpl::run
(this=0x7fffd8004180, F=@0x7fffd87127a0)
    at PassManager.cpp:1304
#14 0x0000000001307695 in llvm::FunctionPassManager::run (this=0x7fffd8004140,
F=@0x7fffd87127a0)
    at PassManager.cpp:1246
#15 0x0000000000cddcae in llvm::JIT::runJITOnFunctionUnlocked
(this=0x7fffd8004040, F=0x7fffd87127a0, 
    locked=@0x7fffeab14980) at JIT.cpp:532
#16 0x0000000000cde113 in llvm::JIT::getPointerToFunction (this=0x7fffd8004040,
F=0x7fffd87127a0) at JIT.cpp:605
#17 0x0000000000ce2ee2 in (anonymous namespace)::JITResolver::JITCompilerFn
(Stub=0x7fffe919ce5c)
    at JITEmitter.cpp:391
#18 0x0000000000f7ce7a in X86CompilationCallback2 (StackPtr=0x7fffeab14bf8,
RetAddr=140737104170588)
    at X86JITInfo.cpp:365
#19 0x0000000000f7cd7a in X86CompilationCallback () at X86JITInfo.cpp:39
#20 0x00007fffe919ce5d in ?? ()
#21 0x00007fffe919ffad in ?? ()
---Type <return> to continue, or q <return> to quit---
#22 0x0000000002443420 in ?? ()
#23 0x00007fffe919ff10 in ?? ()
#24 0x0000000002443420 in ?? ()
#25 0x000000000484a4a0 in ?? ()
#26 0x00000000048c9948 in ?? ()
#27 0x00007fffe4356730 in ?? ()
#28 0x00007fffeab14c90 in ?? ()
#29 0x0000000000936143 in migrate_to_jit(struct LVM_LabelInstruction *,
LVM_State *, LVM_Thread *) (label=
    0x7fffe427e2d0, state=0x2443420, thread=0x484a4a0)
    at /home/veldema/Projects/jackal-main/Manta/manta/LVM/interp.cc:461
#30 0x00000000009363f9 in LVM_Thread::interp_loop (this=0x484a4a0,
migrated=true, from_jit=true)
    at
/home/veldema/vm_build/jackal-x86_64-1.0/compiler/lasm/LVM/vm-interp.cc:3
#31 0x00007fffe91a289e in ?? ()
#32 0x00007fffe91a27b0 in ?? ()
#33 0x00007fffeb51dde0 in ?? ()
#34 0x00007fffeab1d910 in ?? ()
#35 0x0000000000000000 in ?? ()


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list