llvm-project/llvm/test/CodeGen/RISCV/rnmi-interrupt-attr-error.ll
Gergely Futo 1454db130a
[RISCV] Support resumable non-maskable interrupt handlers (#148134)
The `rnmi` interrupt attribute value has been added for the `Smrnmi`
extension.

---------

Co-authored-by: Sam Elliott <sam@lenary.co.uk>
2025-08-04 10:54:50 +02:00

10 lines
324 B
LLVM

; RUN: not llc -mtriple riscv32-unknown-elf -mattr=-smrnmi -o - %s 2>&1 \
; RUN: | FileCheck %s
; RUN: not llc -mtriple riscv64-unknown-elf -mattr=-smrnmi -o - %s 2>&1 \
; RUN: | FileCheck %s
; CHECK: LLVM ERROR: 'rnmi' interrupt kind requires Srnmi extension
define void @test_rnmi() "interrupt"="rnmi" {
ret void
}