blob: adfdfc900ff6bd26066115237e9f9e2679b08e52 [file] [log] [blame]
; RUN: llc -mtriple powerpc-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
; RUN: not --crash llc -filetype=obj -mtriple powerpc-ibm-aix-xcoff \
; RUN: -verify-machineinstrs < %s 2>&1 | \
; RUN: FileCheck %s --check-prefix=OBJ
@i = external global i32, align 4 #0
; Function Attrs: noinline nounwind optnone
define i32* @get() {
entry:
ret i32* @i
}
; CHECK: la 3, i[TD](2)
; CHECK: .toc
; CHECK-NEXT: .extern i[TD]
; OBJ: LLVM ERROR: toc-data not yet supported when writing object files.
attributes #0 = { "toc-data" }