This IR:
define { i1, i1 } @oof() unnamed_addr {
start:
ret { i1, i1 } { i1 true, i1 true }
}
and this command line:
llc llvm2.ll --mtriple=ez80
produces this output:
LLVM ERROR: unable to translate instruction: ret (in function: oof)
PLEASE submit a bug report to https://github.com/CE-Programming/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: llc llvm2.ll --mtriple=ez80
1. Running pass 'Function Pass Manager' on module 'llvm2.ll'.
2. Running pass 'IRTranslator' on function '@oof'
#0 0x0000558f465a6eb8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (llc+0x149aeb8)
#1 0x0000558f465a4d6e llvm::sys::RunSignalHandlers() (llc+0x1498d6e)
#2 0x0000558f465a7568 SignalHandler(int) Signals.cpp:0:0
#3 0x00007f514363e2d0 (/usr/lib/libc.so.6+0x3e2d0)
#4 0x00007f5143698a2c (/usr/lib/libc.so.6+0x98a2c)
#5 0x00007f514363e1a0 raise (/usr/lib/libc.so.6+0x3e1a0)
#6 0x00007f51436255fe abort (/usr/lib/libc.so.6+0x255fe)
#7 0x0000558f4652975c llvm::report_fatal_error(llvm::Twine const&, bool) (llc+0x141d75c)
#8 0x0000558f468d2096 (llc+0x17c6096)
#9 0x0000558f468e4f39 llvm::IRTranslator::runOnMachineFunction(llvm::MachineFunction&) (llc+0x17d8f39)
#10 0x0000558f459af844 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (llc+0x8a3844)
#11 0x0000558f45dd7f36 llvm::FPPassManager::runOnFunction(llvm::Function&) (llc+0xccbf36)
#12 0x0000558f45ddeda3 llvm::FPPassManager::runOnModule(llvm::Module&) (llc+0xcd2da3)
#13 0x0000558f45dd8c26 llvm::legacy::PassManagerImpl::run(llvm::Module&) (llc+0xcccc26)
#14 0x0000558f455e5725 main (llc+0x4d9725)
#15 0x00007f51436276c1 (/usr/lib/libc.so.6+0x276c1)
#16 0x00007f51436277f9 __libc_start_main (/usr/lib/libc.so.6+0x277f9)
#17 0x0000558f455dfc85 _start (llc+0x4d3c85)
zsh: IOT instruction (core dumped) llc llvm2.ll --mtriple=ez80
Note that this hasn't been fixed, but I'm using the build from CI at commit ef28e9c, the most recent one with fully passing tests. Thanks for making this by the way!
This IR:
and this command line:
produces this output:
Note that this hasn't been fixed, but I'm using the build from CI at commit ef28e9c, the most recent one with fully passing tests. Thanks for making this by the way!