mirror of
https://github.com/RPCS3/llvm.git
synced 2026-08-27 02:51:23 -04:00
c0a66ac414
With -pg -mfentry -mnop-mcount, a nop is emitted instead of the call to fentry. Review: Ulrich Weigand https://reviews.llvm.org/D67765 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372950 91177308-0d34-0410-b5e6-96231b3b80d8
27 lines
499 B
LLVM
27 lines
499 B
LLVM
; 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"="true" }
|
|
|