lc-3-2/llvm

Allow using `R7` with `--verify-machineinstrs`

Closed this issue · 0 comments

Currently, LLVM's verification code complains when we try to make the compiler use R7 as a general purpose register. It thinks that the code that stores R7 in the prologue is a use of a register whose value we haven't defined. Mask this behind a special instruction to prevent it from complaining.