1 ; RUN: opt < %s -passes=instrprof -S | FileCheck %s
3 target triple = "aarch64-unknown-linux-gnu"
5 @__profn_foo = private constant [3 x i8] c"foo"
6 ; CHECK: @__profc_foo = private global [9 x i8] c"\FF\FF\FF\FF\FF\FF\FF\FF\FF", section "__llvm_prf_cnts", comdat, align 8
8 define void @_Z3foov() {
9 call void @llvm.instrprof.timestamp(ptr @__profn_foo, i64 12345678, i32 9, i32 0)
10 ; CHECK: call void @__llvm_profile_set_timestamp(ptr @__profc_foo)
11 call void @llvm.instrprof.cover(ptr @__profn_foo, i64 12345678, i32 9, i32 8)
15 declare void @llvm.instrprof.timestamp(ptr, i64, i32, i32)
16 declare void @llvm.instrprof.cover(ptr, i64, i32, i32)