[llvm] 8935165 - [NFCI][test] Use lit.local.cfg in test/MachineVerifier/RISCV to gate tests (#118217)

via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 08:34:01 PST 2024


Author: Alex Bradbury
Date: 2024-12-02T16:33:57Z
New Revision: 8935165659b7c31914e86059b91c9da8389cf19a

URL: https://github.com/llvm/llvm-project/commit/8935165659b7c31914e86059b91c9da8389cf19a
DIFF: https://github.com/llvm/llvm-project/commit/8935165659b7c31914e86059b91c9da8389cf19a.diff

LOG: [NFCI][test] Use lit.local.cfg in test/MachineVerifier/RISCV to gate tests (#118217)

87cc4b48c08a627f330396f941b84671c5e591d5 added `REQUIRES:
riscv64-registered-target` to the only test in this directory. It seems
better (and also reflects what we do elsewhere, including in the AMDGPU/
subdir in MachineVerifier) to gate for all files in the directory via
lit.local.cfg.

Added: 
    llvm/test/MachineVerifier/RISCV/lit.local.cfg

Modified: 
    llvm/test/MachineVerifier/RISCV/subreg-liveness.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/MachineVerifier/RISCV/lit.local.cfg b/llvm/test/MachineVerifier/RISCV/lit.local.cfg
new file mode 100644
index 00000000000000..17351748513d98
--- /dev/null
+++ b/llvm/test/MachineVerifier/RISCV/lit.local.cfg
@@ -0,0 +1,2 @@
+if not "RISCV" in config.root.targets:
+    config.unsupported = True

diff  --git a/llvm/test/MachineVerifier/RISCV/subreg-liveness.mir b/llvm/test/MachineVerifier/RISCV/subreg-liveness.mir
index c69bc1b5eca649..cb73f500ddc218 100644
--- a/llvm/test/MachineVerifier/RISCV/subreg-liveness.mir
+++ b/llvm/test/MachineVerifier/RISCV/subreg-liveness.mir
@@ -1,6 +1,5 @@
 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 5
 # RUN: llc -mtriple=riscv64 -mattr=+v -run-pass=none %s -o - | FileCheck %s
-# REQUIRES: riscv64-registered-target
 
 # During the MachineVerifier, it assumes that used registers have been defined
 # In this test case, while $v12_v13_v14_v15_v16 covers $v14_v15,


        


More information about the llvm-commits mailing list