llvm-project/llvm/test/CodeGen/PowerPC/basic-toc-data-private-linkage.ll
Zaara Syeda a03a6e9964
[AIX] [XCOFF] Add support for common and local common symbols in the TOC (#79530)
This patch adds support for common and local symbols in the TOC for AIX.
Note that we need to update isVirtualSection so as a common symbol in
TOC will have the symbol type XTY_CM and will be initialized when placed
in the TOC so sections with this type are no longer virtual.

---------

Co-authored-by: Zaara Syeda <syzaara@ca.ibm.com>
2024-01-31 16:34:21 -05:00

16 lines
500 B
LLVM

; RUN: not --crash llc -mtriple powerpc-ibm-aix-xcoff -verify-machineinstrs \
; RUN: < %s 2>&1 | FileCheck %s
; RUN: not --crash llc -mtriple powerpc64-ibm-aix-xcoff -verify-machineinstrs \
; RUN: < %s 2>&1 | FileCheck %s
@iprivate = private global i32 55 #0
define nonnull ptr @get() local_unnamed_addr {
entry:
ret ptr @iprivate
}
attributes #0 = { "toc-data" }
; CHECK: LLVM ERROR: A GlobalVariable with private linkage is not currently supported by the toc data transformation.