blob: 88297c7d82585cbc6b36300ffe941fd1368b4992 [file] [log] [blame]
Hal Finkel40d7f5c2016-09-01 09:42:39 +00001; RUN: opt -S -cfinserter < %s | FileCheck %s
2target datalayout = "E-m:e-i64:64-n32:64"
3target triple = "powerpc64-bgq-linux"
4
5define void @test1() #0 {
6entry:
7 ret void
8
9; CHECK-LABEL: define void @test1()
10; CHECK: entry:
11; CHECK-NEXT: call void @mcount()
12; CHECK: ret void
13}
14
15define void @test2() #1 {
16entry:
17 ret void
18
19; CHECK-LABEL: define void @test2()
20; CHECK: entry:
21; CHECK-NEXT: call void @.mcount()
22; CHECK: ret void
23}
24
25attributes #0 = { "counting-function"="mcount" }
26attributes #1 = { "counting-function"=".mcount" }
27