llvm-project/llvm/test/CodeGen/SystemZ/zos-lower-constant.ll
Tony Tao 637a038c04
[SystemZ][GOFF] Implement lowerConstant (#179394)
Implement lowerConstants for SystemZ and handle special cases where
entries need to be created in the ADA for static functions or VCon for
externals.

---------

Co-authored-by: Tony Tao <tonytao@ca.ibm.com>
2026-02-04 10:03:34 -05:00

25 lines
523 B
LLVM

; Test lowering of constants on z/OS
;
; RUN: llc < %s -mtriple=s390x-ibm-zos -emit-gnuas-syntax-on-zos=0 | FileCheck %s
; CHECK: func_s CSECT
; CHECK: DC AD(AD({{.*}}#S)+XL8'0')
; CHECK: func_e CSECT
; CHECK: DC VD(bar)
; CHECK: DC RD(foo)
; CHECK-NEXT: DC VD(foo)
@x = hidden global i32 4077, align 4
@y = hidden global ptr @x, align 8
@func_s = hidden global ptr @foo, align 8
@func_e = hidden global ptr @bar, align 8
define hidden void @bar() {
entry:
ret void
}
define internal void @foo() {
entry:
ret void
}