[clang] 6582785 - Add CHECK-LABEL to avoid source tree path sensitivity in test (#112461)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 31 09:04:56 PDT 2024
Author: Tex Riddell
Date: 2024-10-31T09:04:48-07:00
New Revision: 6582785d011ad7d9ca131c4122f93b1e54c5017a
URL: https://github.com/llvm/llvm-project/commit/6582785d011ad7d9ca131c4122f93b1e54c5017a
DIFF: https://github.com/llvm/llvm-project/commit/6582785d011ad7d9ca131c4122f93b1e54c5017a.diff
LOG: Add CHECK-LABEL to avoid source tree path sensitivity in test (#112461)
The test `clang/test/CodeGen/2004-02-20-Builtins.c` will erroneously
fail if "builtin" is in the path to your source tree.
This change adds a `CHECK-LABEL !llvm.ident` after the `CHECK-NOT` to
avoid searching into the metadata containing the path.
Added:
Modified:
clang/test/CodeGen/2004-02-20-Builtins.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/2004-02-20-Builtins.c b/clang/test/CodeGen/2004-02-20-Builtins.c
index 13f970127d606a..4febe2fd30e1dd 100644
--- a/clang/test/CodeGen/2004-02-20-Builtins.c
+++ b/clang/test/CodeGen/2004-02-20-Builtins.c
@@ -3,6 +3,9 @@ double sqrt(double x);
// CHECK-LABEL: @zsqrtxxx
// CHECK-NOT: builtin
+// Don't search into metadata definitions. !llvm.ident can contain the
+// substring "builtin" if it's in the source tree path.
+// CHECK-LABEL: !llvm.ident
void zsqrtxxx(float num) {
num = sqrt(num);
}
More information about the cfe-commits
mailing list