Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions compiler-rt/test/profile/instrprof-api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/test/profile/instrprof-reset-counters.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}
}
Expand Down
Loading