diff options
author | Martin Storsjö <martin@martin.st> | 2025-04-25 12:18:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-25 12:18:17 +0300 |
commit | 3e56f5f41843204b6e612362542b77110f8f8188 (patch) | |
tree | a9407b9cd19e8a2b5f87c41a673b198ed5380768 | |
parent | 2de001da389f4729020a11e61ba571a6be8dcc71 (diff) | |
download | llvm-3e56f5f41843204b6e612362542b77110f8f8188.zip llvm-3e56f5f41843204b6e612362542b77110f8f8188.tar.gz llvm-3e56f5f41843204b6e612362542b77110f8f8188.tar.bz2 |
[compiler-rt] [test] Adjust profile tests to allow arm_aapcs_vfpcc (#137176)
This fixes these tests for Windows on armv7.
-rw-r--r-- | compiler-rt/test/profile/instrprof-api.c | 14 | ||||
-rw-r--r-- | compiler-rt/test/profile/instrprof-reset-counters.c | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/compiler-rt/test/profile/instrprof-api.c b/compiler-rt/test/profile/instrprof-api.c index 07c5b2f..a07b47e 100644 --- a/compiler-rt/test/profile/instrprof-api.c +++ b/compiler-rt/test/profile/instrprof-api.c @@ -19,22 +19,22 @@ __attribute__((noinline)) int bar() { return 4; } int foo() { __llvm_profile_reset_counters(); - // PROFGEN: call void @__llvm_profile_reset_counters() - // PROFUSE-NOT: call void @__llvm_profile_reset_counters() + // PROFGEN: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_reset_counters() + // PROFUSE-NOT: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_reset_counters() return bar(); } -// PROFUSE-NOT: declare void @__llvm_profile_reset_counters() +// PROFUSE-NOT: declare {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_reset_counters() int main() { int z = foo() + 3; __llvm_profile_set_filename("rawprof.profraw"); - // PROFGEN: call void @__llvm_profile_set_filename(ptr noundef @{{.*}}) - // PROFUSE-NOT: call void @__llvm_profile_set_filename(ptr noundef @{{.*}}) + // PROFGEN: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_set_filename(ptr noundef @{{.*}}) + // PROFUSE-NOT: call {{(arm_aapcs_vfpcc )?}}void @__llvm_profile_set_filename(ptr noundef @{{.*}}) if (__llvm_profile_dump()) return 2; - // PROFGEN: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump() - // PROFUSE-NOT: %{{.*}} = call {{(signext )*}}i32 @__llvm_profile_dump() + // PROFGEN: %{{.*}} = call {{(arm_aapcs_vfpcc )?}}{{(signext )*}}i32 @__llvm_profile_dump() + // PROFUSE-NOT: %{{.*}} = call {{(arm_aapcs_vfpcc )?}}{{(signext )*}}i32 @__llvm_profile_dump() return z + bar() - 11; } diff --git a/compiler-rt/test/profile/instrprof-reset-counters.c b/compiler-rt/test/profile/instrprof-reset-counters.c index f15bc0d..93dfb0e 100644 --- a/compiler-rt/test/profile/instrprof-reset-counters.c +++ b/compiler-rt/test/profile/instrprof-reset-counters.c @@ -12,7 +12,7 @@ int main(void) { return 0; } void foo(int N) { - // CHECK-LABEL: define{{( dso_local)?}} void @foo( + // CHECK-LABEL: define{{( dso_local)?}}{{( arm_aapcs_vfpcc)?}} void @foo( // CHECK: br i1 %{{.*}}, label %{{.*}}, label %{{.*}}, !prof ![[FOO:[0-9]+]] if (N) {} } |