Skip to content

Commit 3e56f5f

Browse files
authored
[compiler-rt] [test] Adjust profile tests to allow arm_aapcs_vfpcc (#137176)
This fixes these tests for Windows on armv7.
1 parent 2de001d commit 3e56f5f

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

compiler-rt/test/profile/instrprof-api.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ __attribute__((noinline)) int bar() { return 4; }
1919

2020
int foo() {
2121
__llvm_profile_reset_counters();
22-
// PROFGEN: call void @__llvm_profile_reset_counters()
23-
// PROFUSE-NOT: call void @__llvm_profile_reset_counters()
22+
// PROFGEN: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_reset_counters()
23+
// PROFUSE-NOT: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_reset_counters()
2424
return bar();
2525
}
2626

27-
// PROFUSE-NOT: declare void @__llvm_profile_reset_counters()
27+
// PROFUSE-NOT: declare {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_reset_counters()
2828

2929
int main() {
3030
int z = foo() + 3;
3131
__llvm_profile_set_filename("rawprof.profraw");
32-
// PROFGEN: call void @__llvm_profile_set_filename(ptr noundef @{{.*}})
33-
// PROFUSE-NOT: call void @__llvm_profile_set_filename(ptr noundef @{{.*}})
32+
// PROFGEN: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_set_filename(ptr noundef @{{.*}})
33+
// PROFUSE-NOT: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_set_filename(ptr noundef @{{.*}})
3434
if (__llvm_profile_dump())
3535
return 2;
36-
// PROFGEN: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump()
37-
// PROFUSE-NOT: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump()
36+
// PROFGEN: %{{.*}} = call {{(arm_aapcs_vfpcc )?}}{{(signext )*}}i32 @__llvm_profile_dump()
37+
// PROFUSE-NOT: %{{.*}} = call {{(arm_aapcs_vfpcc )?}}{{(signext )*}}i32 @__llvm_profile_dump()
3838
return z + bar() - 11;
3939
}
4040

compiler-rt/test/profile/instrprof-reset-counters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(void) {
1212
return 0;
1313
}
1414
void foo(int N) {
15-
// CHECK-LABEL: define{{( dso_local)?}} void @foo(
15+
// CHECK-LABEL: define{{( dso_local)?}}{{( arm_aapcs_vfpcc)?}} void @foo(
1616
// CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[FOO:[0-9]+]]
1717
if (N) {}
1818
}

0 commit comments

Comments
 (0)