Skip to content

Commit

Permalink
[RISCV] Update some tests that used "interrupt"="user". NFC
Browse files Browse the repository at this point in the history
Support for this was removed previously. Change them to "supervisor" since
they were testing generic "interrupt" things.
  • Loading branch information
topperc committed Jun 1, 2023
1 parent fe6716a commit 490cd11
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ define i32 @isr_user(i8 %n) #0 {
ret i32 0
}

attributes #0 = { "interrupt"="user" }
attributes #0 = { "interrupt"="supervisor" }
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/RISCV/interrupt-attr-ret-error.ll
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ define i32 @isr1_user() #0 {
}


attributes #0 = { "interrupt"="user" }
attributes #0 = { "interrupt"="supervisor" }
2 changes: 1 addition & 1 deletion llvm/test/CodeGen/RISCV/saverestore.ll
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ define void @alloca(i32 %n) nounwind {
; Check that functions with interrupt attribute do not use save/restore code

declare i32 @foo(...)
define void @interrupt() nounwind "interrupt"="user" {
define void @interrupt() nounwind "interrupt"="supervisor" {
; RV32I-LABEL: interrupt:
; RV32I-NOT: call t0, __riscv_save
; RV32I-NOT: tail __riscv_restore
Expand Down

0 comments on commit 490cd11

Please sign in to comment.