[clang] f118280 - [clang] Fix func-attr.c test
Yi Kong via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 15 07:18:42 PDT 2022
Author: Yi Kong
Date: 2022-10-15T23:16:26+09:00
New Revision: f118280b0407c40b1aacf40ad6777d777e333c88
URL: https://github.com/llvm/llvm-project/commit/f118280b0407c40b1aacf40ad6777d777e333c88
DIFF: https://github.com/llvm/llvm-project/commit/f118280b0407c40b1aacf40ad6777d777e333c88.diff
LOG: [clang] Fix func-attr.c test
The test was introduced by 84a9ec2ff1ee. The check is over-specific and
is broken on the Android buildbot. Fixed by relaxing the variable name
check.
Added:
Modified:
clang/test/CodeGen/func-attr.c
Removed:
################################################################################
diff --git a/clang/test/CodeGen/func-attr.c b/clang/test/CodeGen/func-attr.c
index 6191130589fe6..e7c60f2d7abff 100644
--- a/clang/test/CodeGen/func-attr.c
+++ b/clang/test/CodeGen/func-attr.c
@@ -8,5 +8,5 @@ float foo(float a, float b) {
return a+b;
}
-// CHECK: define{{.*}} float @foo(float noundef %a, float noundef %b) [[FAST_ATTRS:#[0-9]+]]
+// CHECK: define{{.*}} float @foo(float noundef %{{.*}}, float noundef %{{.*}}) [[FAST_ATTRS:#[0-9]+]]
// CHECK: attributes [[FAST_ATTRS]] = { {{.*}} "approx-func-fp-math"="true" {{.*}} "no-signed-zeros-fp-math"="true" "no-trapping-math"="true" {{.*}} "unsafe-fp-math"="true"
More information about the cfe-commits
mailing list