Hi. Great project!
I ran into a problem with division. Some division operation caused an 'invalid instruction' error.
After looking into it, I discovered that the issue is related to Rust using a specific instruction called 'teq'. However, this instruction, along with other trap instructions, is not supported in cannon.
To fix this, I added a flag that tells LLVM, the compiler, to avoid using traps for division checks.
Hi. Great project! I ran into a problem with division. Some division operation caused an 'invalid instruction' error. After looking into it, I discovered that the issue is related to Rust using a specific instruction called 'teq'. However, this instruction, along with other trap instructions, is not supported in cannon. To fix this, I added a flag that tells LLVM, the compiler, to avoid using traps for division checks.