summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/CountingFunctionInserter/mcount.ll
blob: 88297c7d82585cbc6b36300ffe941fd1368b4992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
; RUN: opt -S -cfinserter < %s | FileCheck %s
target datalayout = "E-m:e-i64:64-n32:64"
target triple = "powerpc64-bgq-linux"

define void @test1() #0 {
entry:
  ret void

; CHECK-LABEL: define void @test1()
; CHECK: entry:
; CHECK-NEXT: call void @mcount()
; CHECK: ret void
}

define void @test2() #1 {
entry:
  ret void

; CHECK-LABEL: define void @test2()
; CHECK: entry:
; CHECK-NEXT: call void @.mcount()
; CHECK: ret void
}

attributes #0 = { "counting-function"="mcount" }
attributes #1 = { "counting-function"=".mcount" }

OpenPOWER on IntegriCloud