26eeb9dbdfcc67a1378a2a15a1c665fbf685c5d5
[oota-llvm.git] / test / Transforms / PGOProfile / single_bb_gen.ll
1 ; RUN: opt < %s -pgo-instr-gen -S | FileCheck %s
2 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-unknown-linux-gnu"
4
5 ; CHECK: @__llvm_profile_name__Z9single_bbv = private constant [13 x i8] c"_Z9single_bbv"
6
7 define i32 @_Z9single_bbv() {
8 entry:
9 ; CHECK: call void @llvm.instrprof.increment(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @__llvm_profile_name__Z9single_bbv, i32 0, i32 0), i64 12884901887, i32 1, i32 0)
10   ret i32 0
11 }