[llvm] 490cd11 - [RISCV] Update some tests that used "interrupt"="user". NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed May 31 20:31:32 PDT 2023
Author: Craig Topper
Date: 2023-05-31T20:31:24-07:00
New Revision: 490cd1164c1b247020deab3adf11553bffc673ac
URL: https://github.com/llvm/llvm-project/commit/490cd1164c1b247020deab3adf11553bffc673ac
DIFF: https://github.com/llvm/llvm-project/commit/490cd1164c1b247020deab3adf11553bffc673ac.diff
LOG: [RISCV] Update some tests that used "interrupt"="user". NFC
Support for this was removed previously. Change them to "supervisor" since
they were testing generic "interrupt" things.
Added:
Modified:
llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll
llvm/test/CodeGen/RISCV/interrupt-attr-ret-error.ll
llvm/test/CodeGen/RISCV/saverestore.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll b/llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll
index 3458780bfc57..f15f565c39fd 100644
--- a/llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll
+++ b/llvm/test/CodeGen/RISCV/interrupt-attr-args-error.ll
@@ -8,4 +8,4 @@ define i32 @isr_user(i8 %n) #0 {
ret i32 0
}
-attributes #0 = { "interrupt"="user" }
+attributes #0 = { "interrupt"="supervisor" }
diff --git a/llvm/test/CodeGen/RISCV/interrupt-attr-ret-error.ll b/llvm/test/CodeGen/RISCV/interrupt-attr-ret-error.ll
index a865090546fe..30fd8fb91897 100644
--- a/llvm/test/CodeGen/RISCV/interrupt-attr-ret-error.ll
+++ b/llvm/test/CodeGen/RISCV/interrupt-attr-ret-error.ll
@@ -9,4 +9,4 @@ define i32 @isr1_user() #0 {
}
-attributes #0 = { "interrupt"="user" }
+attributes #0 = { "interrupt"="supervisor" }
diff --git a/llvm/test/CodeGen/RISCV/saverestore.ll b/llvm/test/CodeGen/RISCV/saverestore.ll
index f1bcc4f709a5..f3dc2d0ef507 100644
--- a/llvm/test/CodeGen/RISCV/saverestore.ll
+++ b/llvm/test/CodeGen/RISCV/saverestore.ll
@@ -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
More information about the llvm-commits
mailing list