1; RUN: llc -mtriple powerpc-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
2; RUN: not --crash llc -filetype=obj -mtriple powerpc-ibm-aix-xcoff  \
3; RUN:                 -verify-machineinstrs < %s 2>&1 | \
4; RUN:   FileCheck %s --check-prefix=OBJ32
5; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
6; RUN: not --crash llc -filetype=obj -mtriple powerpc64-ibm-aix-xcoff  \
7; RUN:                 -verify-machineinstrs < %s 2>&1 | \
8; RUN:   FileCheck %s --check-prefix=OBJ64
9
10@i = external global i32, align 4  #0
11
12; Function Attrs: noinline nounwind optnone
13define i32* @get() {
14  entry:
15    ret i32* @i
16}
17
18; CHECK:        la 3, i[TD](2)
19; CHECK:        .toc
20; CHECK-NEXT:   .extern i[TD]
21
22; OBJ32: LLVM ERROR:  toc-data not yet supported when writing object files.
23; OBJ64: LLVM ERROR:  64-bit XCOFF object files are not supported yet.
24
25attributes #0 = { "toc-data" }
26