xref: /llvm-project/llvm/test/CodeGen/RISCV/interrupt-attr-invalid.ll (revision 4ad76852584480b646d1ce360202e18591ea8938)
1*4ad76852SYuanfang Chen; RUN: not --crash llc -mtriple riscv32-unknown-elf -o - %s \
22e4106b7SAna Pazos; RUN: 2>&1 | FileCheck %s
3*4ad76852SYuanfang Chen; RUN: not --crash llc -mtriple riscv64-unknown-elf -o - %s \
42e4106b7SAna Pazos; RUN: 2>&1 | FileCheck %s
52e4106b7SAna Pazos
62e4106b7SAna Pazos; CHECK: LLVM ERROR: Function interrupt attribute argument not supported!
72e4106b7SAna Pazosdefine void @isr_user() #0 {
82e4106b7SAna Pazos  ret void
92e4106b7SAna Pazos}
102e4106b7SAna Pazos
112e4106b7SAna Pazosattributes #0 = { "interrupt"="foo" }
12