Files
clang-p2996/llvm/test/CodeGen/SystemZ/call-zos-02.ll
Kai Nacke 62ba528a68 [Systemz/z/OS] Centralize emitting the call type information
With XPLINK, a no-op with information about the call type is emitted
after each call instruction. Centralizing it has the advantage that it is
easy to document all cases, and it makes it easier to extend it later
(e.g. dynamic stack allocation, 32 bit mode).
Also add a test checking the call types emitted so far.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D119557
2022-02-14 12:00:50 -05:00

18 lines
481 B
LLVM

; RUN: llc --mtriple=s390x-ibm-zos --show-mc-encoding < %s | FileCheck %s
define internal signext i32 @caller() {
entry:
ret i32 0
}
define hidden signext i32 @caller2() {
entry:
; CHECK-LABEL: caller2:
; CHECK: brasl 7, caller@PLT * encoding: [0xc0,0x75,A,A,A,A]
; CHECK-NEXT: * fixup A - offset: 2, value: caller@PLT+2, kind: FK_390_PC32DBL
; CHECK-NEXT: bcr 0, 3 * encoding: [0x07,0x03]
%call = call signext i32 @caller()
ret i32 %call
}