[PATCH] D136087: [clang] Fix func-attr.c test
Takemaru Kadoi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 17 08:24:00 PDT 2022
diohabara created this revision.
Herald added a project: All.
diohabara requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The test was introduced by 84a9ec2ff1ee <https://reviews.llvm.org/rG84a9ec2ff1ee97fd7e8ed988f5e7b197aab84a7b>. The check is over-specific and
is broken on the Android buildbot. Fixed by relaxing the variable name
check.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136087
Files:
clang/test/CodeGen/func-attr.c
Index: clang/test/CodeGen/func-attr.c
===================================================================
--- clang/test/CodeGen/func-attr.c
+++ clang/test/CodeGen/func-attr.c
@@ -8,5 +8,5 @@
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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136087.468212.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221017/0a598a83/attachment.bin>
More information about the cfe-commits
mailing list