Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/SystemZ/zos-ada-relocations.ll
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

78 lines
2.1 KiB
LLVM

; Test the ADA section in the assembly output for all cases.
;
; RUN: llc < %s -mtriple=s390x-ibm-zos | FileCheck %s
; CHECK-LABEL: DoIt DS 0H
; CHECK: stmg 6,7,1840(4)
; CHECK: aghi 4,-224
; CHECK: lg 1,0(5)
; CHECK: lg 6,16(5)
; CHECK: lg 5,8(5)
; CHECK: stg 1,2264(4)
; CHECK: basr 7,6
; CHECK: bcr 0,0
; CHECK: lg 7,2072(4)
; CHECK: aghi 4,224
; CHECK: b 2(7)
define hidden void @DoIt() {
entry:
%F = alloca ptr, align 8
store ptr @DoFunc, ptr %F, align 8
%0 = load ptr, ptr %F, align 8
call void @Caller(ptr noundef %0)
ret void
}
declare void @DoFunc()
declare void @Caller(ptr noundef)
; CHECK-LABEL: get_i DS 0H
; CHECK: stmg 6,8,1872(4)
; CHECK: aghi 4,-192
; CHECK: lg 1,24(5)
; CHECK: lg 2,32(5)
; CHECK: lgf 1,0(1)
; CHECK: lg 6,48(5)
; CHECK: lg 5,40(5)
; CHECK: l 8,0(2)
; CHECK: basr 7,6
; CHECK: bcr 0,0
; CHECK: ar 3,8
; CHECK: lgfr 3,3
; CHECK: lmg 7,8,2072(4)
; CHECK: aghi 4,192
; CHECK: b 2(7)
@i = external global i32, align 4
@i2 = external global i32, align 4
define signext i32 @get_i() {
entry:
%0 = load i32, ptr @i, align 4
%1 = load i32, ptr @i2, align 4
%call = call signext i32 @callout(i32 signext %1)
%add = add nsw i32 %0, %call
ret i32 %add
}
declare signext i32 @callout(i32 signext)
; CHECK: stdin#C CSECT
; CHECK: C_WSA64 CATTR ALIGN(4),FILL(0),DEFLOAD,NOTEXECUTABLE,RMODE(64),PART(stdi
; CHECK: in#S)
; CHECK: stdin#S XATTR LINKAGE(XPLINK),REFERENCE(DATA),SCOPE(SECTION)
; CHECK: * Offset 0 pointer to function descriptor DoFunc
; CHECK: DC VD(DoFunc@indirect)
; CHECK: * Offset 8 function descriptor of Caller
; CHECK: DC RD(Caller)
; CHECK: DC VD(Caller)
; CHECK: * Offset 24 pointer to data symbol i2
; CHECK: DC AD(i2)
; CHECK: * Offset 32 pointer to data symbol i
; CHECK: DC AD(i)
; CHECK: * Offset 40 function descriptor of callout
; CHECK: DC RD(callout)
; CHECK: DC VD(callout)
; CHECK: EXTRN DoFunc@indirect
; CHECK: DoFunc@indirect XATTR LINKAGE(XPLINK),REFERENCE(CODE,INDIRECT),SCOPE(EX
; CHECK: PORT)
; CHECK: DoFunc@indirect ALIAS C'DoFunc'