Hal Finkel | 40d7f5c | 2016-09-01 09:42:39 +0000 | [diff] [blame] | 1 | ; RUN: opt -S -cfinserter < %s | FileCheck %s |
| 2 | target datalayout = "E-m:e-i64:64-n32:64" |
| 3 | target triple = "powerpc64-bgq-linux" |
| 4 | |
| 5 | define void @test1() #0 { |
| 6 | entry: |
| 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 | |
| 15 | define void @test2() #1 { |
| 16 | entry: |
| 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 | |
| 25 | attributes #0 = { "counting-function"="mcount" } |
| 26 | attributes #1 = { "counting-function"=".mcount" } |
| 27 | |