Files
Kai Nacke 648bd564d0 [SystemZ][z/OS] Migrate most test case to use HLASM syntax (#181222)
This PR migrates all but two test cases to use HLASM syntax. It also
flips the default for the command line option, making HLASM output the
default.
The missing test cases requires some more support in the HLASM streamer,
which I will add separately.
2026-02-13 14:44:44 -05:00

35 lines
1.1 KiB
LLVM

; RUN: llc < %s -mtriple=s390x-ibm-zos | \
; RUN: FileCheck --check-prefixes=CHECK %s
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 22, ptr @cfuncctor, ptr null }]
@llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 22, ptr @cfuncdtor, ptr null }]
; Check for presence of C_@@SQINIT:
; CHECK: .xtor.22
; CHECK: DC XL4'7FFF0017'
; Check direct relocation and low bit on ctor.
; CHECK: DC AD(QD(stdin#S)+XL8'0')
; CHECK: DC XL8'0000000000000000'
; CHECK: DC XL4'7FFF0017'
; CHECK: DC XL8'0000000000000000'
; Check direct relocation and low bit on dtor.
; CHECK: DC AD(QD(stdin#S)+XL8'16')
; Check for function descriptors in ADA section:
; CHECK: * Offset 0 function descriptor of cfuncctor
; CHECK: DC RD(cfuncctor)
; CHECK: DC VD(cfuncctor)
; CHECK: * Offset 16 function descriptor of cfuncdtor
; CHECK: DC RD(cfuncdtor)
; CHECK: DC VD(cfuncdtor)
define hidden void @cfuncctor() {
entry:
ret void
}
define hidden void @cfuncdtor() {
entry:
ret void
}