[LLVMbugs] [Bug 13291] New: NVPTX backend does not implement store on i1

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jul 7 17:26:51 PDT 2012


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

             Bug #: 13291
           Summary: NVPTX backend does not implement store on i1
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: maemarcus at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8844
  --> http://llvm.org/bugs/attachment.cgi?id=8844
reprocase

NVPTXISelLowering.cpp has "setOperationAction(ISD::STORE, MVT::i1, Expand);",
but the legalizer doesn't know how to handle that. As result, NVPTX backend
will crash for any program that tries to write a value of i1 type to memory.

Discussion mail threads:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-June/051227.html
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-July/051368.html

Reduced reprocase attached:

dmikushin at hp2:~/forge/kernelgen/branches/tests_lnt/behavior/sincos>
llc test.ll.1
This action is not supported yet!
UNREACHABLE executed at
/tmp/rpmbuild_debug/BUILD/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1194!
0  libLLVM-3.2svn.so 0x00007f395f147077
1  libLLVM-3.2svn.so 0x00007f395f14763d
2  libpthread.so.0   0x00007f395dee05d0
3  libc.so.6         0x00007f395d74b945 gsignal + 53
4  libc.so.6         0x00007f395d74cf21 abort + 385
5  libLLVM-3.2svn.so 0x00007f395f1305d9
llvm::report_fatal_error(llvm::Twine const&) + 0
6  libLLVM-3.2svn.so 0x00007f395efdb4d2
7  libLLVM-3.2svn.so 0x00007f395efdfc3b
8  libLLVM-3.2svn.so 0x00007f395efdfd2d llvm::SelectionDAG::Legalize() + 49
9  libLLVM-3.2svn.so 0x00007f395f0d0d76
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 2532
10 libLLVM-3.2svn.so 0x00007f395f0d2ae6
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 228
11 libLLVM-3.2svn.so 0x00007f395f0d3524
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) +
2620
12 libLLVM-3.2svn.so 0x00007f395f0d3ade
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) +
896
13 libLLVM-3.2svn.so 0x00007f395ea033de
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 82
14 libLLVM-3.2svn.so 0x00007f395ec3a38d
llvm::FPPassManager::runOnFunction(llvm::Function&) + 331
15 libLLVM-3.2svn.so 0x00007f395ec3a568
llvm::FPPassManager::runOnModule(llvm::Module&) + 86
16 libLLVM-3.2svn.so 0x00007f395ec3a061
llvm::MPPassManager::runOnModule(llvm::Module&) + 381
17 libLLVM-3.2svn.so 0x00007f395ec3b7df
llvm::PassManagerImpl::run(llvm::Module&) + 111
18 libLLVM-3.2svn.so 0x00007f395ec3b841
llvm::PassManager::run(llvm::Module&) + 33
19 llc               0x000000000040e086 main + 2835
20 libc.so.6         0x00007f395d737bc6 __libc_start_main + 230
21 llc               0x000000000040bdb9
Stack dump:
0.      Program arguments: llc test.ll.1
1.      Running pass 'Function Pass Manager' on module 'test.ll.1'.
2.      Running pass 'NVPTX DAG->DAG Pattern Instruction Selection' on
function '@__kernelgen_main'
Aborted

-- 
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