[llvm] 2588e83 - [X86][mem-fold] Only run x86-fold-tables.test when target x86 is built
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 10 21:49:08 PDT 2023
Author: Shengchen Kan
Date: 2023-04-11T12:48:44+08:00
New Revision: 2588e831af4a2240825215670c53717f07a95b3a
URL: https://github.com/llvm/llvm-project/commit/2588e831af4a2240825215670c53717f07a95b3a
DIFF: https://github.com/llvm/llvm-project/commit/2588e831af4a2240825215670c53717f07a95b3a.diff
LOG: [X86][mem-fold] Only run x86-fold-tables.test when target x86 is built
Avoid the LIT fail when only arm/aarch64 is built.
Added:
Modified:
llvm/test/TableGen/x86-fold-tables.test
Removed:
################################################################################
diff --git a/llvm/test/TableGen/x86-fold-tables.test b/llvm/test/TableGen/x86-fold-tables.test
index aedb4c32ec93..e7c882ca6555 100644
--- a/llvm/test/TableGen/x86-fold-tables.test
+++ b/llvm/test/TableGen/x86-fold-tables.test
@@ -3,4 +3,5 @@
// fix the vulnerable rules in X86FoldTablesEmitter.cpp until the
diff is reasonable
// 2. cp <generated_file> x86-fold-tables.inc
+// REQUIRES: target=x86{{.*}}
// RUN:
diff %p/x86-fold-tables.inc %llvm_lib_dir/Target/X86/X86GenFoldTables.inc
More information about the llvm-commits
mailing list