HLASM has a requirement where aliasing labels need to be emitted at the same time as the aliasee label, similar to AIX. I used their implementation for reference with some modifications as we can only alias functions and we must emit all symbol attributes before the label is emitted to ensure the XATTR instruction contains the correct attributes. --------- Co-authored-by: Tony Tao <tonytao@ca.ibm.com>
17 lines
419 B
LLVM
17 lines
419 B
LLVM
; Test aliasing errors on z/OS
|
|
|
|
; RUN: not llc < %s -mtriple=s390x-ibm-zos -emit-gnuas-syntax-on-zos=0 2>&1 | FileCheck %s
|
|
|
|
; CHECK: error: Only aliases to functions is supported in GOFF.
|
|
; CHECK: error: Weak alias/reference not supported on z/OS
|
|
|
|
@actual_variable = global i32 0
|
|
@alias_variable = alias i32, ptr @actual_variable
|
|
|
|
@foo1 = weak alias i32 (i32), ptr @foo
|
|
define hidden void @foo() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|