xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/interrupt-attr-args-error.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: not llc -mcpu=mips32r2 -march=mipsel -relocation-model=static < %s 2> %t
2*9880d681SAndroid Build Coastguard Worker; RUN: FileCheck %s < %t
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; CHECK: LLVM ERROR: Functions with the interrupt attribute cannot have arguments!
5*9880d681SAndroid Build Coastguard Workerdefine i32 @isr_sw0(i8 signext %n) #0 {
6*9880d681SAndroid Build Coastguard Worker  ret i32 0
7*9880d681SAndroid Build Coastguard Worker}
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerattributes #0 = { "interrupt"="sw0" }
10