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
6;; FIXME: currently only fileHeader and sectionHeaders are supported in XCOFF64.
7
8@i = external global i32, align 4  #0
9
10; Function Attrs: noinline nounwind optnone
11define i32* @get() {
12  entry:
13    ret i32* @i
14}
15
16; CHECK:        la 3, i[TD](2)
17; CHECK:        .toc
18; CHECK-NEXT:   .extern i[TD]
19
20; OBJ32: LLVM ERROR:  toc-data not yet supported when writing object files.
21
22attributes #0 = { "toc-data" }
23