llvm/test/CodeGen/PowerPC/basic-toc-data-local-linkage.ll
raw| 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 | |
| 8 | define dso_local i32 @read_i32_local_linkage() { |
| 9 | entry: |
| 10 | %0 = load i32, ptr @ilocal, align 4 |
| 11 | ret i32 %0 |
| 12 | } |
| 13 | |
| 14 | attributes #0 = { "toc-data" } |
| 15 | |
| 16 | ; CHECK: .toc |
| 17 | ; CHECK-NEXT: .csect ilocal[TD],2 |
| 18 | ; CHECK-NEXT: .space 4 |