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