mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
2c90fb35b9
For consistency with GCC, the target label is moved to the brcl itself instead of the next instruction. Review: Ulrich Weigand
33 lines
681 B
LLVM
33 lines
681 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: .section __mcount_loc,"a",@progbits
|
|
; CHECK: .quad .Ltmp0
|
|
; CHECK: .text
|
|
; CHECK: .Ltmp0:
|
|
; CHECK: brasl %r0, __fentry__@PLT
|
|
; CHECK: br %r14
|
|
}
|
|
|
|
define void @test2() #1 {
|
|
entry:
|
|
ret void
|
|
|
|
; CHECK-LABEL: test2:
|
|
; CHECK: .section __mcount_loc,"a",@progbits
|
|
; CHECK: .quad .Ltmp1
|
|
; CHECK: .text
|
|
; CHECK: .Ltmp1:
|
|
; CHECK: .Ltmp2:
|
|
; CHECK: brcl 0, .Ltmp2
|
|
; CHECK: br %r14
|
|
}
|
|
|
|
attributes #0 = { "fentry-call"="true" "mrecord-mcount" }
|
|
attributes #1 = { "fentry-call"="true" "mnop-mcount" "mrecord-mcount" }
|