topperc wrote: Can we have a test for this? You use the `not` command in the RUN line to turn a failing test into a passing test. For example, `llvm/test/CodeGen/RISCV/sifive-interrupt-attr-err.ll` https://github.com/llvm/llvm-project/pull/142715