mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
610fa4c9a1
Let the "mnop-mcount" function attribute simply be present or non-present. Update SystemZ backend as well to use hasFnAttribute() instead. Review: Ulrich Weigand https://reviews.llvm.org/D71669
27 lines
492 B
LLVM
27 lines
492 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" }
|
|
|