1; RUN: llc %s -mtriple=s390x-linux-gnu -mcpu=z10 -o - -verify-machineinstrs \
2; RUN:   | FileCheck %s
3
4define void @test1() #0 {
5entry:
6  ret void
7
8; CHECK-LABEL: @test1
9; CHECK: brasl %r0, __fentry__
10; CHECK-NOT: mcount
11; CHECK: br %r14
12}
13
14define void @test2() #1 {
15entry:
16  br label %bb1
17bb1:
18  call void @address_taken(i64 ptrtoint (i8* blockaddress(@test2, %bb1) to i64), i32 512)
19  ret void
20
21; CHECK-LABEL: @test2
22; CHECK: brasl %r0, __fentry__
23; CHECK-NOT: mcount
24; CHECK: br %r14
25}
26
27declare void @address_taken(i64, i32) local_unnamed_addr
28attributes #0 = { "fentry-call"="true" }
29attributes #1 = { inlinehint minsize noredzone nounwind optsize sspstrong "fentry-call"="true" }
30