diff options
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/mcount-insertion.ll')
-rw-r--r-- | llvm/test/CodeGen/PowerPC/mcount-insertion.ll | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/PowerPC/mcount-insertion.ll b/llvm/test/CodeGen/PowerPC/mcount-insertion.ll new file mode 100644 index 00000000000..04e8571d6f4 --- /dev/null +++ b/llvm/test/CodeGen/PowerPC/mcount-insertion.ll @@ -0,0 +1,16 @@ +; RUN: llc < %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: @test1 +; CHECK: bl mcount +; CHECK-NOT: mcount +; CHECK: blr +} + +attributes #0 = { "counting-function"="mcount" } + |