summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SystemZ/mnop-mcount-01.ll
blob: 99aff5a223e615674c42e1240570be28c549b8b0 (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
; RUN: llc %s -mtriple=s390x-linux-gnu -mcpu=z10 -o - -verify-machineinstrs \
; RUN:   | FileCheck %s

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

; CHECK-LABEL: @test1
; CHECK: brasl %r0, __fentry__
; CHECK-NOT: brcl 0, .Ltmp0
; CHECK: br %r14
}

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

; CHECK-LABEL: @test2
; CHECK-NOT: brasl %r0, __fentry__
; CHECK: brcl 0, .Ltmp0
; CHECK: br %r14
}

attributes #0 = { "fentry-call"="true" }
attributes #1 = { "fentry-call"="true" "mnop-mcount" }

OpenPOWER on IntegriCloud