https://llvm.org/bugs/show_bug.cgi?id=26898
Bug ID: 26898 Summary: [amdgcn--amdhsa] AMDGPUAsmPrinter::EmitGlobalVariable unknown linkage type Product: new-bugs Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: zhenlinospi...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 16017 --> https://llvm.org/bugs/attachment.cgi?id=16017&action=edit reduced case for the bug Dear developer, I compiled the OpenCL kernel with the libclc(Commit d2b49f)+llvm trunk. There is something like a lookup table in addrspace(2) used by exp. The llc will crash when handling this case. The command I issue is llc -mtriple=amdgcn--amdhsa -filetype=asm test.ll -o test.s. The message I got is unknown linkage type UNREACHABLE executed at /home/phi/compiler/llvm-trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:142! #0 0x0000000000fa9535 llvm::sys::PrintStackTrace(llvm::raw_ostream&) (/usr/local/bin/llc+0xfa9535) #1 0x0000000000fa72e6 llvm::sys::RunSignalHandlers() (/usr/local/bin/llc+0xfa72e6) #2 0x0000000000fa7511 SignalHandler(int) (/usr/local/bin/llc+0xfa7511) #3 0x00007f076de90340 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x10340) #4 0x00007f076d2becc9 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x36cc9) #5 0x00007f076d2c20d8 abort (/lib/x86_64-linux-gnu/libc.so.6+0x3a0d8) #6 0x0000000000f64a6c (/usr/local/bin/llc+0xf64a6c) #7 0x000000000074e313 llvm::AMDGPUAsmPrinter::EmitGlobalVariable(llvm::GlobalVariable const*) (/usr/local/bin/llc+0x74e313) #8 0x000000000091558f llvm::AsmPrinter::doFinalization(llvm::Module&) (/usr/local/bin/llc+0x91558f) #9 0x0000000000c6d60b llvm::FPPassManager::doFinalization(llvm::Module&) (/usr/local/bin/llc+0xc6d60b) #10 0x0000000000c77927 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/local/bin/llc+0xc77927) #11 0x00000000005b212b compileModule(char**, llvm::LLVMContext&) (/usr/local/bin/llc+0x5b212b) #12 0x0000000000593358 main (/usr/local/bin/llc+0x593358) #13 0x00007f076d2a9ec5 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21ec5) #14 0x00000000005aa1ba _start (/usr/local/bin/llc+0x5aa1ba) Stack dump: 0. Program arguments: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -filetype=asm bugpoint-reduced-simplified.bc -o x.s The bugpoint-reduced case is attached. Thanks. Best regards, Li, Hong-Yu -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs