[llvm] 4f0a120 - [lit][REQUIRES] Fix some tests with incorrect REQUIRES clauses

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 1 13:49:34 PDT 2022


Author: Paul Robinson
Date: 2022-11-01T13:49:23-07:00
New Revision: 4f0a1201a46226428d231a1cadae93bf6e0616ef

URL: https://github.com/llvm/llvm-project/commit/4f0a1201a46226428d231a1cadae93bf6e0616ef
DIFF: https://github.com/llvm/llvm-project/commit/4f0a1201a46226428d231a1cadae93bf6e0616ef.diff

LOG: [lit][REQUIRES] Fix some tests with incorrect REQUIRES clauses

These weren't running anywhere because of bad specifications.
One test has bit-rotted and had to be XFAILed, the rest are okay.

Differential Revision: https://reviews.llvm.org/D136612

Added: 
    

Modified: 
    llvm/test/Analysis/BasicAA/cs-cs-arm.ll
    llvm/test/Analysis/BasicAA/intrinsics-arm.ll
    llvm/test/CodeGen/Generic/DbgValueAggregate.ll
    llvm/test/CodeGen/Hexagon/abi-padding-2.ll
    llvm/test/CodeGen/Hexagon/abi-padding.ll
    llvm/test/CodeGen/PowerPC/read-set-flm.ll
    llvm/test/MC/AsmParser/layout-interdependency.s
    llvm/test/tools/llvm-objcopy/ELF/update-section.test
    llvm/test/tools/llvm-readobj/COFF/call-graph-profile-err.s
    llvm/test/tools/llvm-readobj/COFF/call-graph-profile.s

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/BasicAA/cs-cs-arm.ll b/llvm/test/Analysis/BasicAA/cs-cs-arm.ll
index d5da4455502c0..d6a9976590778 100644
--- a/llvm/test/Analysis/BasicAA/cs-cs-arm.ll
+++ b/llvm/test/Analysis/BasicAA/cs-cs-arm.ll
@@ -1,5 +1,8 @@
 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=aa-eval -print-all-alias-modref-info -disable-output 2>&1 | FileCheck %s
-; REQUIRES: arm
+; REQUIRES: arm-registered-target
+; This hasn't been run in a long time and it no longer matches reality.
+; Filed issue #58738.
+; XFAIL: *
 
 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
 target triple = "arm-apple-ios"

diff  --git a/llvm/test/Analysis/BasicAA/intrinsics-arm.ll b/llvm/test/Analysis/BasicAA/intrinsics-arm.ll
index 4f11bc5879f30..7ec9788e748e6 100644
--- a/llvm/test/Analysis/BasicAA/intrinsics-arm.ll
+++ b/llvm/test/Analysis/BasicAA/intrinsics-arm.ll
@@ -1,5 +1,5 @@
 ; RUN: opt -aa-pipeline=basic-aa -passes=gvn -S < %s | FileCheck %s
-; REQUIRES: arm
+; REQUIRES: arm-registered-target
 
 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:32:64-v128:32:128-a0:0:32-n32"
 

diff  --git a/llvm/test/CodeGen/Generic/DbgValueAggregate.ll b/llvm/test/CodeGen/Generic/DbgValueAggregate.ll
index e683225584428..1663fa774f2c9 100644
--- a/llvm/test/CodeGen/Generic/DbgValueAggregate.ll
+++ b/llvm/test/CodeGen/Generic/DbgValueAggregate.ll
@@ -1,5 +1,5 @@
 ; RUN: llc -O0 -global-isel < %s | FileCheck %s
-; REQUIRES: aarch64
+; REQUIRES: aarch64-registered-target
 target triple = "aarch64-unknown-linux-gnu"
 
 define void @MAIN_() #0 {

diff  --git a/llvm/test/CodeGen/Hexagon/abi-padding-2.ll b/llvm/test/CodeGen/Hexagon/abi-padding-2.ll
index 19d96a54f8633..52006f66444f8 100644
--- a/llvm/test/CodeGen/Hexagon/abi-padding-2.ll
+++ b/llvm/test/CodeGen/Hexagon/abi-padding-2.ll
@@ -1,5 +1,4 @@
 ; RUN: llc -march=hexagon -mcpu=hexagonv65 < %s | FileCheck %s
-; REQUIRES: hexagon
 
 ; C file was:
 ; struct S { char b; long long a; };

diff  --git a/llvm/test/CodeGen/Hexagon/abi-padding.ll b/llvm/test/CodeGen/Hexagon/abi-padding.ll
index ee2b990777b92..55ffba6fec51e 100644
--- a/llvm/test/CodeGen/Hexagon/abi-padding.ll
+++ b/llvm/test/CodeGen/Hexagon/abi-padding.ll
@@ -1,5 +1,4 @@
 ; RUN: llc -march=hexagon -mcpu=hexagonv65 < %s | FileCheck %s
-; REQUIRES: hexagon
 
 ; C file was:
 ; struct S { int a[3];};

diff  --git a/llvm/test/CodeGen/PowerPC/read-set-flm.ll b/llvm/test/CodeGen/PowerPC/read-set-flm.ll
index 9d47eec6a2d3c..090f1dc8fd60f 100644
--- a/llvm/test/CodeGen/PowerPC/read-set-flm.ll
+++ b/llvm/test/CodeGen/PowerPC/read-set-flm.ll
@@ -2,7 +2,7 @@
 ; RUN: llc < %s -mtriple powerpc64le-unknown-linux | FileCheck %s
 ; RUN: llc < %s -mtriple powerpc64le-unknown-linux -debug-only=machine-scheduler \
 ; RUN:   2>&1 | FileCheck %s --check-prefix=LOG
-; REQUIRES: DEBUG
+; REQUIRES: asserts
 
 define double @in_nostrict(double %a, double %b, double %c, double %d) {
 ; CHECK-LABEL: in_nostrict:

diff  --git a/llvm/test/MC/AsmParser/layout-interdependency.s b/llvm/test/MC/AsmParser/layout-interdependency.s
index 6310610a718c1..ca766573426a2 100644
--- a/llvm/test/MC/AsmParser/layout-interdependency.s
+++ b/llvm/test/MC/AsmParser/layout-interdependency.s
@@ -1,5 +1,5 @@
 # RUN: not llvm-mc --filetype=obj %s -o /dev/null 2>&1 | FileCheck %s
-# REQUIRES: defaut_triple
+# REQUIRES: default_triple
 
 fct_end:
 

diff  --git a/llvm/test/tools/llvm-objcopy/ELF/update-section.test b/llvm/test/tools/llvm-objcopy/ELF/update-section.test
index 8805b2b71090b..79cfe0e719418 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/update-section.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/update-section.test
@@ -1,4 +1,4 @@
-# REQUIRES: x86
+# REQUIRES: x86-registered-target
 
 # RUN: yaml2obj %s -o %t
 

diff  --git a/llvm/test/tools/llvm-readobj/COFF/call-graph-profile-err.s b/llvm/test/tools/llvm-readobj/COFF/call-graph-profile-err.s
index 6ba01f6c2fa1a..c88139a7538a9 100644
--- a/llvm/test/tools/llvm-readobj/COFF/call-graph-profile-err.s
+++ b/llvm/test/tools/llvm-readobj/COFF/call-graph-profile-err.s
@@ -1,4 +1,4 @@
-# REQUIRES: x86
+# REQUIRES: x86-registered-target
 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o %t
 # RUN: not llvm-readobj %t --cg-profile 2>&1 | FileCheck --check-prefix=ERR %s
 

diff  --git a/llvm/test/tools/llvm-readobj/COFF/call-graph-profile.s b/llvm/test/tools/llvm-readobj/COFF/call-graph-profile.s
index 1a4294255bf6a..3cf4916db265a 100644
--- a/llvm/test/tools/llvm-readobj/COFF/call-graph-profile.s
+++ b/llvm/test/tools/llvm-readobj/COFF/call-graph-profile.s
@@ -1,4 +1,4 @@
-# REQUIRES: x86
+# REQUIRES: x86-registered-target
 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s -o %t
 # RUN: llvm-readobj %t --cg-profile | FileCheck %s
 


        


More information about the llvm-commits mailing list