[clang] Fix func-attr.c test
authorYi Kong <yikong@google.com>
Sat, 15 Oct 2022 14:10:53 +0000 (23:10 +0900)
committerYi Kong <yikong@google.com>
Sat, 15 Oct 2022 14:16:26 +0000 (23:16 +0900)
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.

clang/test/CodeGen/func-attr.c

index 6191130..e7c60f2 100644 (file)
@@ -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"