1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/CodeGen/SystemZ/mrecord-mcount-01.ll
Jonas Paulsson 2c90fb35b9 [SystemZ] Create brcl 0,0 instead of brcl 0,3 in EmitNop for 6 bytes.
For consistency with GCC, the target label is moved to the brcl itself
instead of the next instruction.

Review: Ulrich Weigand
2020-01-02 13:21:04 -08:00

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" }