xref: /llvm-project/llvm/test/CodeGen/PowerPC/basic-toc-data-local-linkage.ll (revision a03a6e99647318a86ea398c42e241da43e3c550e)
1; RUN: llc  -mtriple powerpc-ibm-aix-xcoff  -verify-machineinstrs \
2; RUN:     < %s 2>&1 | FileCheck %s
3; RUN: llc  -mtriple powerpc64-ibm-aix-xcoff  -verify-machineinstrs \
4; RUN:     < %s 2>&1 | FileCheck %s
5
6@ilocal = internal global i32 0, align 4 #0
7
8define dso_local i32 @read_i32_local_linkage() {
9  entry:
10    %0 = load i32, ptr @ilocal, align 4
11    ret i32 %0
12}
13
14attributes #0 = { "toc-data" }
15
16; CHECK:      .toc
17; CHECK-NEXT: .csect ilocal[TD],2
18; CHECK-NEXT: .space  4
19