Now that the GNU and HLASM `InstPrinter` paths are separated in https://github.com/llvm/llvm-project/pull/112975, differentiate between them in `SystemZInstrFormats.td`. The main difference are: - Tabs converted to space - Remove space after comma for instruction operands --------- Co-authored-by: Tony Tao <tonytao@ca.ibm.com>
18 lines
479 B
LLVM
18 lines
479 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
|
|
}
|