30 lines · plain
1; RUN: llc %s -mtriple=s390x-linux-gnu -mcpu=z10 -o - -verify-machineinstrs \2; RUN: | FileCheck %s3 4define void @test1() #0 {5entry:6 ret void7 8; CHECK-LABEL: @test19; CHECK: brasl %r0, __fentry__10; CHECK-NOT: mcount11; CHECK: br %r1412}13 14define void @test2() #1 {15entry:16 br label %bb117bb1:18 call void @address_taken(i64 ptrtoint (ptr blockaddress(@test2, %bb1) to i64), i32 512)19 ret void20 21; CHECK-LABEL: @test222; CHECK: brasl %r0, __fentry__23; CHECK-NOT: mcount24; CHECK: br %r1425}26 27declare void @address_taken(i64, i32) local_unnamed_addr28attributes #0 = { "fentry-call"="true" }29attributes #1 = { inlinehint minsize noredzone nounwind optsize sspstrong "fentry-call"="true" }30