1 ; RUN: opt -ee-instrument < %s | opt -inline | llc | FileCheck %s
3 ; The run-line mimics how Clang might run the instrumentation passes.
5 target datalayout = "E-m:e-i64:64-n32:64"
6 target triple = "powerpc64-bgq-linux"
9 define void @leaf_function() #0 {
13 ; CHECK-LABEL: leaf_function:
16 ; CHECK: bl __cyg_profile_func_enter
18 ; CHECK: bl __cyg_profile_func_exit
24 define void @root_function() #0 {
26 call void @leaf_function()
29 ; CHECK-LABEL: root_function:
32 ; CHECK: bl __cyg_profile_func_enter
35 ; Entry and exit calls, inlined from @leaf_function()
36 ; CHECK: bl __cyg_profile_func_enter
38 ; CHECK: bl __cyg_profile_func_exit
41 ; CHECK: bl __cyg_profile_func_exit
46 attributes #0 = { "instrument-function-entry-inlined"="mcount" "instrument-function-entry"="__cyg_profile_func_enter" "instrument-function-exit"="__cyg_profile_func_exit" }