Open luismarques opened 7 years ago
I had the same problem. As I understood the issue marking functions as no-omit-framepointer should help. Anyway attached patch helped me. no_reg_class_found.diff.txt
@nnlight Thanks. I applied the patch and it didn't help me (maybe I botched it, I'm using a non-C frontend so the build steps are a bit more complicated). But the bit about the frame pointer (-disable-fp-elim) did help! Thanks!
The following LLVM IR doesn't compile to RISC-V assembly, due to an assertion failure:
The same error still happens when we simplify the auto generated clang/llvm call to:
This IR is a slight simplification of the IR generated by a C-like LLVM frontend, built with this LLVM fork, branch riscv-trunk (latest commit, cd5b77c). If a fix cannot be provided in a timely fashion, workarounds would be appreciated too.