[RISCV] Update some tests that used "interrupt"="user". NFC
authorCraig Topper <craig.topper@sifive.com>
Thu, 1 Jun 2023 03:31:24 +0000 (20:31 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 1 Jun 2023 03:31:24 +0000 (20:31 -0700)
Support for this was removed previously. Change them to "supervisor" since
they were testing generic "interrupt" things.

llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll
llvm/test/CodeGen/RISCV/interrupt-attr-ret-error.ll
llvm/test/CodeGen/RISCV/saverestore.ll

index 3458780..f15f565 100644 (file)
@@ -8,4 +8,4 @@ define i32 @isr_user(i8 %n) #0 {
   ret i32 0
 }
 
-attributes #0 = { "interrupt"="user" }
+attributes #0 = { "interrupt"="supervisor" }
index a865090..30fd8fb 100644 (file)
@@ -9,4 +9,4 @@ define i32 @isr1_user() #0 {
 }
 
 
-attributes #0 = { "interrupt"="user" }
+attributes #0 = { "interrupt"="supervisor" }
index f1bcc4f..f3dc2d0 100644 (file)
@@ -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