Files
clang-p2996/llvm/test/CodeGen/PowerPC/basic-toc-data-def.ll
esmeyi 8d6e2c3e3d [XCOFF] support writing sections, relocations and symbols for XCOFF64.
This is the second patch to enable the XCOFF64 object writer.

Reviewed By: jhenderson, shchenz

Differential Revision: https://reviews.llvm.org/D122287
2022-05-17 04:27:47 -04:00

21 lines
810 B
LLVM

; 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
; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
; RUN: not --crash llc -filetype=obj -mtriple powerpc64-ibm-aix-xcoff \
; RUN: -verify-machineinstrs < %s 2>&1 | \
; RUN: FileCheck %s --check-prefix=OBJ
@i = global i32 55, align 4 #0
attributes #0 = { "toc-data" }
; CHECK: .toc
; CHECK-NEXT: .csect i[TD],2
; CHECK-NEXT: .globl i[TD]
; CHECK-NEXT: .align 2
; CHECK-NEXT: .vbyte 4, 55
; OBJ: LLVM ERROR: toc-data not yet supported when writing object files.